123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLPR02600_전자결과일괄등록
- * 설 명 : 전자현미경 결과 일괄등록
- * 설 계 자 : 설계자가 별도로 존재시 작성
- * 작 성 자 : 유동철(ACK)
- * 작 성 일 : 2010.08.24
- * 수정이력 : 최종작성일 기준으로 변경사항 이력관리
- * 기 타 : 주석문에 반영되어야 할 사항 표기
- -->
- <?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>
- <recstyle>
- <recstylelist>
- <reccnts/>
- <toppos/>
- <degnrowno/>
- </recstylelist>
- </recstyle>
- <prcp>
- <prcplist>
- <instcd/>
- <ptno/>
- <dispptno/>
- <scrn/>
- <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/>
- <scanyn/>
- <formcd/>
- <cretno/>
- <orddd/>
- <readdrid/>
- <scrnid/>
- <rsltcnts3/>
- <rsltcnts4/>
- <rsltcnts5/>
- <specdrnm/>
- <cncrjudgflagcd/>
- <humspec/>
- </prcplist>
- </prcp>
- </main>
- <send>
- </send>
- <init>
- <recformcd/>
- <recform>
- <recformlist>
- <formcd/>
- <formnm/>
- </recformlist>
- </recform>
- <ptnocode/>
- <fromyear/>
- <fromptno/>
- <toyear/>
- <toptno/>
- <acptfromdd/>
- <acpttodd/>
- <refmthdcd/>
- <testcdlist/>
- <testnmlist/>
- <sysdt>
- <sysdtinfo>
- <sysdd/>
- <systm/>
- </sysdtinfo>
- </sysdt>
- <ptnocd>
- <ptnocdlist>
- <instcd/>
- <ptnocd/>
- <ptnonm/>
- </ptnocdlist>
- </ptnocd>
- <testinfo>
- <testitemlist>
- <instcd/>
- <dispseqno/>
- <testcd/>
- <testengnm/>
- <testengabbr/>
- <testhngnm/>
- <testhngabbr/>
- <basepartcd/>
- <basepartnm/>
- <detlpartcd/>
- <detlpartnm/>
- <singletest_cnt/>
- </testitemlist>
- </testinfo>
- <pid/>
- <userinfo>
- <userinfolist>
- <userid/>
- <usernm/>
- <jobkindcd/>
- </userinfolist>
- </userinfo>
- <exmpcd4>
- <exmpcdlist>
- <exmpcd/>
- <exmpnm/>
- </exmpcdlist>
- </exmpcd4>
- <hospenv>
- <hospenvinfo>
- <instcd/>
- <lendrtnterm/>
- <recvqualmthdcd/>
- <plgydeptcd/>
- <plgyteamcd/>
- <doctjobgradcd/>
- <teamjobgradcd/>
- <repttitl/>
- </hospenvinfo>
- </hospenv>
- </init>
- <hidden>
- <readdrlist>
- <readdrid/>
- </readdrlist>
- <reccnts/>
- </hidden>
- <temp>
- <exmpcd>
- <exmpcdlist/>
- </exmpcd>
- <rslttext/>
- </temp>
- </root>
- </instance>
- <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" replace="instance" resultref="/root/init/testinfo/testitemlist"/>
- <submission id="TRLPR01901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/prcp/prcplist"/>
- <submission id="TXLPR00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/message"/>
- <submission id="TRLPR02601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/recstyle/recstylelist"/>
- <submission id="TRLPR02602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/recform/recformlist"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fExeInitialize();
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
- <script type="javascript">
- <![CDATA[
-
- //-----------------------
- // 그리드 컬럼의 전역변수
- var const_rslt_col = 10;
- var const_resn_col = 11;
- var _iRowNo = 0;
-
-
- /* @group : 전자현미경 결과 일괄등록
- * @ver : 2010.08.24 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 초기화 Function
- */
- function fExeInitialize() {
-
- var sCurDate = "";
-
- //---------------------
- // Instance Node 초기화
- model.removeNodeset("/root/main/prcp/prcplist");
-
- //----------------
- // 시스템일시 조회
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- submit("TRLPZ00101", false); // 병원환경설정 조회
- submit("TRLPZ00102", false); // 시스템(서버) 일시 조회
- submit("TRLPZ00109", false); // 병리번호코드 목록 조회
- model.makeValue("/root/send/plgydeptcd", model.getValue("/root/init/hospenv/hospenvinfo/plgydeptcd"));
- submit("TRLPR02602"); // 병리과 서식목록 조회
-
-
- //------------------------------------------------------------
- sCurDate = model.getValue("/root/init/sysdt/sysdtinfo/sysdd");
-
- //--------------------------------------------------------------------------------------------
- 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", "");
- model.makeValue("/root/init/refmthdcd", "2"); // 전체
- model.makeValue("/root/init/ptnocode", "EM"); // 전자현미경으로 기본설정
-
- //---------------
- fGetTestCdList();
-
- //--------------------------
- cbo_ptnocd.disabled = true;
-
- //판독의 목록조회
- submit("TRLPZ00105");
-
- //-----------------
- // 2010-09-02 : YDC
- if (getNodesetCount("/root/init/recform/recformlist") > 0) {
- model.makeValue("/root/init/recformcd", model.getValue("/root/init/recform/recformlist[1]/formcd"));
-
- model.makeValue("/root/init/recform/recformlist[" + (getNodesetCount("/root/init/recform/recformlist") + 1) + "]/formcd", "0000001043");
- model.makeValue("/root/init/recform/recformlist[" + (getNodesetCount("/root/init/recform/recformlist") + 1) + "]/formnm", "테스트용 서식");
- }
-
- model.refresh();
- }
-
- /* @group : 전자현미경 결과 일괄등록
- * @ver : 2010.08.24 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 검사코드 선택 처리 Function
- */
- 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;
- model.refresh();
- }
-
-
- /* @group : 전자현미경 결과 일괄등록
- * @ver : 2010.08.24 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 검사코드 목록 조회 처리 Function
- */
- 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", "PE"); // 조회조건 조회값
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd")); // 기관코드
- submit("TRLPC00401"); // 검사코드목록 조회
-
- //-----------------------------------------
- grd_testlist.fixedcellcheckbox(0,0) = true;
- }
-
- /* @group : 전자현미경 결과 일괄등록
- * @ver : 2010.08.24 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 접수자료 조회 처리 Function
- */
- function fGetAcptList() {
- var sTemp = "";
- var sFromDD = model.getValue("/root/init/acptfromdd");
- var sToDD = model.getValue("/root/init/acpttodd");
-
- //--------------------------
- grd_prcplist.rebuildStyle();
-
- //------------------------------------------------
- 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.removeNodeset("/root/send");
- model.removeNodeset("/root/main/prcp/prcplist");
-
- //-----------------------------------------------------------------
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd")); // 기관코드
- 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/acptfromdd", model.getValue("/root/init/acptfromdd")); // 접수시작일자
- model.makeValue("/root/send/acpttodd", model.getValue("/root/init/acpttodd")); // 접수종료일자
- model.makeValue("/root/send/refmthdcd", model.getValue("/root/init/refmthdcd")); // 결과상태
- model.makeValue("/root/send/pid", model.getValue("/root/init/pid")); // 등록번호
- model.makeValue("/root/send/testcdlist", model.getValue("/root/init/testcdlist")); // 검사코드목록
- model.makeValue("/root/send/workflagcd", "1008"); // 작업구분코드(1008:전자현미경)
- model.makeValue("/root/send/ptno", ""); // 병리번호
- submit("TRLPR01901");
-
- grd_prcplist.colstyle(9, "data", "background-color") = "#ffff99";
- //-------------
- model.refresh();
- }
-
- /* @group : 전자현미경 결과 일괄등록
- * @ver : 2010.08.24 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 조회조건 등록번호 입력 시 처리 Function
- */
- function fExePidKeyPress() {
-
- if (event.keyCode == 13) {
- model.setValue("/root/init/pid", ipt_pid.currentText);
- ipt_pid.refresh();
-
- //------------
- fGetAcptList();
- }
- }
-
- /* @group : 전자현미경 결과 일괄등록
- * @ver : 2010.08.24 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 검사결과 입력 시 처리 Function
- */
- function fExeRsltInptKeyPress() {
-
- if (event.keyCode == 13) {
-
- //--------------------
- fExeRsltChangeColor();
-
- //--------------------------------------------------------------------
- if (grd_prcplist.row == getNodesetCount("/root/main/prcp/prcplist")) {
- return false;
- } else {
- grd_prcplist.row = Number(grd_prcplist.row) + 1;
- }
- }
- }
-
- /* @group : 전자현미경 결과 일괄등록
- * @ver : 2010.08.24 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 검사결과 등록 시 처리 Function
- */
- function fExeRsltSave() {
-
- var sNode = "/root/main/prcp/prcplist";
- var bState = false;
- 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", "SMLPR02600");
-
- //------------------------------------------------------------
- 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", "-");
- }
-
- //-------------
- bState = true;
- }
- }
-
- //------------
- 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']");
- }
-
- //--------------
- model.refresh();
- }
-
- /* @group : 전자현미경 결과 일괄등록
- * @ver : 2010.08.24 (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/prcp/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();
- }
-
- function fGetResnCnts(pRowNo) {
-
- var param = "";
- var sNode = "/root/main/prcp/prcplist";
- var disparam = model.getValue(sNode+"["+pRowNo+"]/pid") + "▦" + model.getValue(sNode+"["+pRowNo+"]/patnm") + "▦" + model.getValue(sNode+"["+pRowNo+"]/sexage") + "▦" + model.getValue(sNode+"["+pRowNo+"]/orddeptnm") + "▦" + model.getValue(sNode+"["+pRowNo+"]/wardroom") + "▦";
-
- //---------------------------------------------------------
- if (model.getValue(sNode+"["+pRowNo+"]/rsltcnts4") != "") {
- setParameter("openmode", "recform"); //오픈모드는 “recform”
- setParameter("disppatinfo", disparam); //등록번호▦환자명▦성별/나이▦진료과▦병실▦
- setParameter("formrecseq", model.getValue(sNode+"["+pRowNo+"]/rsltcnts4"));
- } else {
- setParameter("openmode", "newform"); //오픈모드는 “recform”
- setParameter("SSMMR01100_getTopYn", "N");
- setParameter("formrecseq", "");
- }
-
- setParameter("formcd", model.getValue("/root/init/recformcd"));
- setParameter("pid", model.getValue(sNode+"["+pRowNo+"]/pid"));
- setParameter("orddd", model.getValue(sNode+"["+pRowNo+"]/orddd"));
- setParameter("cretno", model.getValue(sNode+"["+pRowNo+"]/cretno"));
- setParameter("orddeptcd", model.getValue(sNode+"["+pRowNo+"]/orddeptcd"));
- setParameter("orddrid", model.getValue(sNode+"["+pRowNo+"]/orddrid"));
-
- if (model.getValue(sNode+"["+pRowNo+"]/wardroom") == "-" || model.getValue(sNode+"["+pRowNo+"]/wardroom") == "") {
- setParameter("ioflag", "I");
- } else {
- setParameter("ioflag", "O");
- }
-
- //---------------------------------------
- modal("SSMMR01100", 1, 0, 0 ,"", "", "");
-
- //--------------------------------------------
- param = getParameter("SSMMR01100_formrecseq"); // 서식저장번호
- if (param.getTrimLeft().getTrimRight() == "") return false;
-
- model.makeValue(sNode+"["+pRowNo+"]/rsltcnts4", param);
-
- //----------------------------
- // 서식항목 및 입력값 가져오기
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/recno", param);
- submit("TRLPR02601");
-
-
- var LevelNo = 0;
- var TopPos = "-";
- var reccnts = "";
- var recnode = "/root/main/recstyle/recstylelist";
- var sGap = "";
- var LeftPos = 0;
- var sLeftData = "";
- var iPrevLeftPos = 0;
- var sLineData = "";
-
- for (var iNo=1; iNo <= getNodesetCount(recnode); iNo++) {
-
- //-----------------------------------------------------
- if (model.getValue(recnode+"["+iNo+"]/toppos") == "") {
- }
- else if (TopPos != model.getValue(recnode+"["+iNo+"]/toppos")) {
- iPrevLeftPos = 0;
- TopPos = model.getValue(recnode+"["+iNo+"]/toppos");
-
- //-------------
- if (iNo > 1) {
- reccnts += "\n" + sLineData;
- sLineData = "";
- }
-
- } else {
- }
-
- //------------------------------------------------------
- sLeftData = model.getValue(recnode+"["+iNo+"]/leftpos");
- if (sLeftData.isNumber()) {
-
- if (sLineData.length > 0) {
- LeftPos = Number(Number(model.getValue(recnode+"["+iNo+"]/leftpos")) / 10) + 10;
- } else {
- LeftPos = Number(Number(model.getValue(recnode+"["+iNo+"]/leftpos")) / 10) + Number(model.getValue(recnode+"["+iNo+"]/degnitemlevlno"));
- }
- } else {
- LeftPos = sLineData.length + 10;
- }
-
- //------------------------------
- iPrevLeftPos = sLineData.length;
- sLineData += sGap.getLeftPad(LeftPos - iPrevLeftPos, ' ') + model.getValue(recnode+"["+iNo+"]/reccnts");
- }
-
- model.makeValue(sNode+"["+pRowNo+"]/rsltcnts3", reccnts);
- model.makeValue(sNode+"["+pRowNo+"]/testrslt", reccnts);
- model.refresh();
- }
-
- /* @group : 세포결과 일괄등록
- * @ver : 2008.12.03 (CMCDEV-0001)
- * @by : 하만석
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 입력된 결과 확인 할 수 있도록
- */
- function fExeSelTxt(pColNo, iRow)
- {
- sTmp = "";
- sSetNode = "/root/main/prcp/prcplist";
-
- grp_showrslt.attribute("top") = 150;
- grp_showrslt.attribute("left") = 150;
- grp_showrslt.attribute("width") = 900;
- grp_showrslt.attribute("height") = 500;
-
- line2.attribute("x2") = 898;
- line3.attribute("x2") = 898;
- line3.attribute("y1") = 484;
- line3.attribute("y2") = 484;
-
- btn_rsltclose.attribute("left") = 843;
-
- model.makeValue("/root/temp/rslttext", model.getValue(sSetNode + "[" + iRow + "]/testrslt"));
-
- grp_showrslt.visible = true;
- grp_showrslt.refresh();
- model.refresh();
-
- //-------------
- _iRowNo = iRow;
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body>
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">전자현미경 결과 일괄등록</caption>
- </group>
- <group id="grp_biz" style="left:0px; top:40; width:1195; height:744px; ">
- <caption id="caption6" class="tit_2" style="left:5px; top:80px; width:90px; height:13px; font-family:굴림체; font-size:9pt; vertical-align:middle; ">접수목록</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:95; x2:1194px; y2:95; "/>
- <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:60; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:60; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line13" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption4" class="search_no_b" style="left:773px; top:8px; width:21px; height:17px; font-family:굴림체; font-size:10pt; text-align:center; vertical-align:middle; ">~</caption>
- <caption id="caption5" class="search_name" autoresize="true" style="left:896px; top:9px; width:97px; height:17px; font-family:굴림체; font-size:9pt; vertical-align:middle; ">결과상태 :</caption>
- <input id="ipt_ddfrom" ref="/root/init/acptfromdd" class="input_search" navindex="5" inputtype="date" format="yyyy-mm-dd" mask="exclude" showmask="true" style="left:683px; top:8px; width:90px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- lpzfExeDateChange(ipt_fromyear, "/root/init/acptfromdd", "/root/init/fromyear");
- ]]>
- </script>
- </input>
- <select1 id="cmbseaflagcd" ref="/root/init/refmthdcd" class="combo_search" navindex="7" appearance="minimal" style="left:993px; top:8px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>결과미입력</label>
- <value>0</value>
- </item>
- <item>
- <label>결과입력</label>
- <value>1</value>
- </item>
- <item>
- <label>전체</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <button id="btn_sea" class="btn1_letter2" navindex="8" style="left:1123px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetAcptList();
- ]]>
- </script>
- </button>
- <select1 id="cbo_ptnocd" ref="/root/init/ptnocode" disabled="true" navindex="1" appearance="minimal" editmode="search" style="left:109px; top:8px; width:111px; 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:253px; top:8px; width:50px; height:19px; "/>
- <caption id="caption3" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">병리번호 :</caption>
- <caption id="caption2" class="search_no_b" style="left:306px; top:8px; width:12px; height:17px; ">~</caption>
- <input id="input1" ref="/root/init/toptno" class="text_center" navindex="5" maxlength="6" style="left:351px; top:8px; width:50px; height:19px; "/>
- <input id="ipt_toyear" ref="/root/init/toyear" class="text_center" navindex="4" maxlength="2" style="left:321px; top:8px; width:27px; height:19px; "/>
- <input id="ipt_fromyear" ref="/root/init/fromyear" class="text_center" navindex="2" maxlength="2" style="left:223px; top:8px; width:27px; height:19px; "/>
- <caption id="caption7" class="search_name" style="left:592px; top:9px; width:90px; height:17px; ">접수기간 :</caption>
- <caption id="caption8" class="search_name" style="left:15px; top:34; width:90px; height:17px; ">검 사 명 :</caption>
- <button id="btn_bloc" style="left:1165px; top:34px; width:14px; height:16px; background-image:../../../com/commonweb/images/icon_search.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_testlist.attribute("left") = 605;
- grp_testlist.attribute("top") = 70;
- grp_testlist.visible = true;
- ]]>
- </script>
- </button>
- <output id="opt_testnmlist" ref="/root/init/testnmlist" style="left:109px; top:34px; width:1051px; height:19px; border-color:#000000; border-style:solid; "/>
- <input id="ipt_acpttodd" ref="/root/init/acpttodd" class="input_search" navindex="6" inputtype="date" format="yyyy-mm-dd" mask="exclude" showmask="true" style="left:796px; top:8px; width:90px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- lpzfExeDateChange(ipt_toyear, "/root/init/acpttodd", "/root/init/toyear");
- ]]>
- </script>
- </input>
- <caption id="caption9" class="search_name" style="left:410px; top:9px; width:90px; height:17px; ">등록번호 :</caption>
- <input id="ipt_pid" ref="/root/init/pid" maxlength="10" style="left:501px; top:8px; width:79px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fExePidKeyPress();
- ]]>
- </script>
- </input>
- </group>
- <datagrid id="grd_prcplist" nodeset="/root/main/prcp/prcplist" class="datagrid2" caption="instcd^ptno^병리번호^동의서^인종/민족^검사명^검체명^등록번호^성명^이전결과^결과^결과^성별
나이^orddeptcd^진료과^orddrid^진료의^선택
진료의^병동/병실^처방일자^처방시간^접수일자^접수시간^결과일자^결과시간^접수번호^orgprcpstatcd^testcd^spccd^prcpno^execprcpuniqno^rsltrgstno^등록자^cncrjudgflagcd^orgtestrslt^inptdd^inpttm^caption1^caption2^caption3^caption4^caption5^caption6^caption7^caption8^caption9^caption10^caption11^choi^rsltrgstid^acptitemno^orgacptstatcd^prcpgenrflag^scanyn^formcd^cretno^orddd^readdrid^scrnid^rsltcnts3^rsltcnts4^rsltcnts5" colsep="^" colwidth="0, 0, 80, 0, 0, 100, 0, 70, 70, 0, 260, 20, 60, 0, 60, 0, 60, 65, 80, 0, 0, 70, 60, 70, 65, 0, 0, 0, 0, 0, 0, 0, 60, 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" dataheight="25" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" navindex="9" style="left:0px; top:100px; width:1194px; height:642px; ">
- <col ref="instcd"/>
- <col ref="ptno"/>
- <col class="text_center" ref="dispptno"/>
- <col ref="scrn" type="output"/>
- <col ref="humspec"/>
- <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 style="background-image:../../../com/commonweb/images/icon_list.gif; "/>
- <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="specdrnm"/>
- <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="cncrjudgflagcd" visibility="hidden"/>
- <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="scanyn"/>
- <col ref="formcd"/>
- <col ref="cretno"/>
- <col ref="orddd"/>
- <col ref="readdrid"/>
- <col ref="scrnid"/>
- <col ref="rsltcnts3"/>
- <col ref="rsltcnts4"/>
- <col ref="rsltcnts5"/>
- <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>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(grd_prcplist.row > 0 && grd_prcplist.isCell(event.target) && grd_prcplist.row >= grd_prcplist.fixedRows) {
-
- if (grd_prcplist.col == const_resn_col) {
- fGetResnCnts(grd_prcplist.row); // 예문생성 창 표시
- }
-
- if (grd_prcplist.col == const_rslt_col) {
- fExeSelTxt(grd_prcplist.col, grd_prcplist.row);
- }
- }
- ]]>
- </script>
- </datagrid>
- <group id="grp_testlist" visibility="hidden" style="left:70px; top:170px; 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:437; ">
- <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>
- <select1 id="cmb_readdr" ref="/root/hidden/readdrlist/readdrid" class="input_s_essential" appearance="minimal" style="left:221px; 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:144px; top:75px; width:75px; height:19px; vertical-align:middle; ">판독의 지정</caption>
- <group id="grp_showrslt" visibility="hidden" style="left:885px; top:375px; width:120px; height:180px; ">
- <textarea id="textarea1" ref="/root/temp/rslttext" style="left:0px; top:10px; width:898px; height:450px; font-family:굴림체; font-size:16pt; "/>
- <line id="line2" class="line_1" style="x1:0px; y1:5px; x2:898; y2:5px; "/>
- <button id="btn_rsltclose" class="btn4_letter2" navindex="8" style="left:842px; top:462px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_showrslt.visible = false;
-
- if (_iRowNo > 0) {
- model.makeValue("/root/main/prcp/prcplist[" + _iRowNo + "]/testrslt", model.getValue("/root/temp/rslttext"));
- model.makeValue("/root/main/prcp/prcplist[" + _iRowNo + "]/rsltcnts3", model.getValue("/root/temp/rslttext"));
- }
- _iRowNo = 0;
-
- ]]>
- </script>
- </button>
- <line id="line3" class="line_1" style="x1:0px; y1:484px; x2:898px; y2:484px; "/>
- </group>
- <caption id="caption10" style="left:942px; top:76px; width:55px; height:20px; ">서식목록</caption>
- <select1 id="cbo_recformcd" ref="/root/init/recformcd" appearance="minimal" style="left:995px; top:75px; width:199px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/recform/recformlist">
- <label ref="formnm"/>
- <value ref="formcd"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
- <line id="line9" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
- <button id="btn_excel" class="btn6_letter5" navindex="10" style="left:5px; top:3px; width:92px; height:22px; ">
- <caption>EXCEL저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- lpzfExeSaveToExcel(grd_prcplist, "전자현미경 결과 일괄등록");
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" navindex="12" style="left:1137px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeRsltSave();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|