123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLP00200.xfm
- * 설 명 : 검체전달
- * 설 계 자 : 설계자가 별도로 존재시 작성
- * 작 성 자 : 유동철(ACK)
- * 작 성 일 : 2006.12.01
- * 수정이력 : 최종작성일 기준으로 변경사항 이력관리
- * 기 타 : 주석문에 반영되어야 할 사항 표기
- -->
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>전달검체 수신확인</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <prcpcnfm>
- <prcpcnfmlist>
- <choi/>
- <instcd/>
- <spcbarcdno/>
- <spccnt/>
- <reqfrmno/>
- <pid/>
- <patnm/>
- <orddeptcd/>
- <orddeptnm/>
- <oproomnm/>
- <orddrid/>
- <orddrnm/>
- <prcprgstdt/>
- <testcd/>
- <testnm/>
- <rcptflag/>
- <delivedt/>
- <delivenm/>
- <cnfmdt/>
- <cnfmnm/>
- <trandd/>
- <tranno/>
- <transeqno/>
- <spctrandd/>
- <spctranno/>
- <spctranseqno/>
- <preststatcd/>
- <orgprcpstatcd/>
- <prcpgenrflag/>
- <prcpdd/>
- <prcpno/>
- <execprcpuniqno/>
- <tretflag/>
- <resncdkind/>
- <resncd/>
- <spcstatcd/>
- <workflagcd/>
- <acptdt/>
- <cnfmid/>
- <reqfrmflagcd/>
- <testhngnm/>
- <formrecseq/>
- <ptno/>
- <disp1/>
- <disp2/>
- <disp3/>
- <disp1img/>
- <disp2img/>
- <disp3img/>
- </prcpcnfmlist>
- </prcpcnfm>
- <prcplist>
- <prcpcnfmlist>
- <choi/>
- <instcd/>
- <spcbarcdno/>
- <spccnt/>
- <reqfrmno/>
- <pid/>
- <patnm/>
- <orddeptcd/>
- <orddeptnm/>
- <oproomnm/>
- <orddrid/>
- <orddrnm/>
- <prcprgstdt/>
- <testcd/>
- <testnm/>
- <rcptflag/>
- <delivedt/>
- <delivenm/>
- <cnfmdt/>
- <cnfmnm/>
- <trandd/>
- <tranno/>
- <transeqno/>
- <spctrandd/>
- <spctranno/>
- <spctranseqno/>
- <preststatcd/>
- <orgprcpstatcd/>
- <prcpgenrflag/>
- <prcpdd/>
- <prcpno/>
- <execprcpuniqno/>
- <tretflag/>
- <resncdkind/>
- <resncd/>
- </prcpcnfmlist>
- </prcplist>
- <barcdprntsetup>
- <prntsetupinfo>
- <setupinfo/>
- </prntsetupinfo>
- </barcdprntsetup>
- <barcdinfo>
- <barcdlist>
- <instcd/>
- <pid/>
- </barcdlist>
- </barcdinfo>
- <spcbarcd>
- <barcdlist>
- <instcd/>
- </barcdlist>
- </spcbarcd>
- <spcbarcdstat>
- <spcbarcdstatinfo>
- <instcd/>
- </spcbarcdstatinfo>
- </spcbarcdstat>
- </main>
- <send>
- <data1/>
- <data2/>
- </send>
- <init>
- <ddfrom/>
- <ddto/>
- <trsmdeptcd/>
- <testdeptcd/>
- <seaflagcd>0</seaflagcd>
- <barcdno/>
- <ddflagcd>0</ddflagcd>
- <hospenv>
- <hospenvinfo>
- <instcd/>
- <lendrtnterm/>
- <recvqualmthdcd/>
- <reptautoprntflagcd/>
- </hospenvinfo>
- </hospenv>
- <sysdt>
- <sysdtinfo>
- <sysdd/>
- <systm/>
- </sysdtinfo>
- </sysdt>
- <deptlist>
- <dept>
- <deptcd/>
- <deptnm/>
- </dept>
- </deptlist>
- <resncd>
- <resncdlist>
- <instcd/>
- <flagcd/>
- <resncd/>
- <resncnts/>
- </resncdlist>
- </resncd>
- <testdeptlist>
- <dept>
- <deptcd/>
- <deptnm/>
- </dept>
- </testdeptlist>
- <pidno/>
- </init>
- <hidden>
- <resncd/>
- <interval>10</interval>
- </hidden>
- <temp>
- <loginid/>
- </temp>
- </root>
- </instance>
- <submission id="TRLPZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" 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="TRLPJ00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/prcpcnfm/prcpcnfmlist"/>
- <submission id="TRLPJ00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/spcbarcd/barcdlist"/>
- <submission id="TRLPJ00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/spcbarcdstat/spcbarcdstatinfo"/>
- <submission id="TXLPJ00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/barcdinfo/barcdlist"/>
- <submission id="TRLLC90101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/barcdprntsetup"/>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fExeInitialize();
- lzzfMakeBrcdPrntObjHanDo("CommAX");
- ]]>
- </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="../../../lis/commonweb/js/LPZ001.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LZZ001.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript">
- <![CDATA[
- //-------------------------
- // 그리드상의 컬럼 위치 설정
- var COL_SPCINFO = 11;
- var interval_id;
-
- var sAutoSearYN = "N";
-
- var iAcptPrcpCnt = Array(); // 수신확인한 검체 갯수
- var sBarCode = "";
- var iCnt = 0;
-
- /* @group : 전달검체수신확인
- * @ver : 2007.02.12 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 초기화 Function
- */
- function fExeInitialize() {
-
- //타부서에서는 버튼 비활성화
- btn_save.disabled = !checkAuth("X");
- btn_cnfm.disabled = !checkAuth("X");
-
- //-----------------------
- // 사용자의 비밀번호 확인
- if(checkAuth("X")) {
- lpzfExeUserPwdCnfm();
- }
-
- var iMaxRowCnt = 0;
- var instcd = getUserInfo("dutplceinstcd");
- var standard_yn = "orduseyn";
- var ord_deptflag = "D";
- var rslt_ref = "/root/init/deptlist";
- var sort_field = "dispseq";
- var sort_method = "asc";
- zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_field, sort_method);
-
- //--------------
- // 시행부서 검색
- ord_deptflag = "E";
- rslt_ref = "/root/init/testdeptlist";
- zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_field, sort_method);
- //-------------------------------------------------------
- iMaxRowCnt = getNodesetCount("/root/init/testdeptlist/dept");
- model.removeNodeset("/root/init/testdeptlist/dept[deptcd='']");
- for (var iNo=1; iNo <= getNodesetCount("/root/init/testdeptlist/dept"); iNo++) {
- model.makeValue("/root/init/testdeptlist/dept["+iNo+"]/deptflagcd", "E");
- }
-
- //---------------------------------------------------------
- model.removeNodeset("/root/init/deptlist/dept[deptcd='']");
- for (var iNo=1; iNo <= getNodesetCount("/root/init/deptlist/dept"); iNo++) {
- model.makeValue("/root/init/deptlist/dept["+iNo+"]/deptflagcd", "-");
- }
- //--------------------------------------------------------------------------------------
- copyNodesetType("/root/init/deptlist/dept", "/root/init/testdeptlist/dept[*]", "after");
-
- //-------------------------------------------------------
- iMaxRowCnt = getNodesetCount("/root/init/deptlist/dept");
- model.makeValue("/root/init/deptlist/dept["+(Number(iMaxRowCnt)+1)+"]/deptcd", "ZZZZZ");
- model.makeValue("/root/init/deptlist/dept["+(Number(iMaxRowCnt)+1)+"]/depthngnm", "전 체");
-
- //-----------------------
- cmb_trsmdeptcd.refresh();
-
-
- //---------------------
- // Instance Node 초기화
- model.removeNodeset("/root/main/prcpcnfm/prcpcnfmlist");
-
- //------------------------------------------
- model.setValue("/root/init/barcdno", ""); // 바코드번호 초기화
- model.setValue("/root/init/trsmdeptcd", ""); // 발송과 초기화
- model.setValue("/root/init/trsmdeptcd", ""); // 발송과 초기화
- model.setValue("/root/init/ddflagcd", "0"); // 일자구분코드(0:발송일자, 1:수신일자)
- model.setValue("/root/init/seaflagcd", "0"); // 검색방법(0:미확인, 1:확인, 2:전체)
-
- //----------------------------------------------------------------------------------
- model.makeValue("/root/init/ddfrom", model.getValue("/root/init/sysdt/sysdtinfo/sysdd"));
- model.makeValue("/root/init/ddto", model.getValue("/root/init/sysdt/sysdtinfo/sysdd"));
- model.makeValue("/root/init/trsmdeptcd", "ZZZZZ");
-
- //---------------------
- // 병원환경설정 정보조회
- fGetHospEnvSetInfo();
-
- //--------------------------------------------------
- model.makeValue("/root/send/scrnid", getScreenID());
- submit("TRLLC90101", false);
-
- //---------------------------------
- // 수신확인방법(0:선조회, 1:후조회)
- if (model.getValue("/root/init/hospenv/hospenvinfo/recvqualmthdcd") == "0") {
- fGetPrcpCnfmList("1");
- }
-
- //--------------
- model.refresh();
- }
-
- /* @group : 전달검체수신확인
- * @ver : 2007.02.12 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 병원환경설정 정보조회 처리 Function
- */
- function fGetHospEnvSetInfo() {
-
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- submit("TRLPZ00101");
-
- //--------------------
- submit("TRLPZ00102"); // 시스템 현재일시를 조회
- fExeSysDtSet(); // 시스템일자를 설정
-
- //----------------------------------------------
- model.makeValue("/root/send/baseflagcd", "'20'");
- submit("TRLPZ00103");
-
- //-------------
- model.refresh();
- }
-
- /* @group : 전달검체수신확인
- * @ver : 2007.02.12 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 시스템일시 설정 처리 Function
- */
- function fExeSysDtSet() {
-
- var sTDay = model.getValue("/root/init/sysdt/sysdtinfo/sysdd");
-
- model.setValue("/root/init/ddfrom", sTDay.toDate().getAddDate(-3,"D").getDateFormat("YYYYMMDD"));
- model.setValue("/root/init/ddto", model.getValue("/root/init/sysdt/sysdtinfo/sysdd"));
- }
-
- /* @group : 전달검체수신확인
- * @ver : 2007.02.12 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 의뢰지 검체정보 조회 처리 Function
- */
- function fExePopupOpenSpeciman()
- {
- //-----------------------------------
- // 체크되었을 경우만 팝업창을 표시한다.
- if (model.getValue("/root/main/ordinfo/ordinfolist/spcinfo") == "true")
- {
-
- modal("SPLPJ00100", "", "", "", "", "");
- // lpzfExeComnOpenScrn2("SPLPJ00100_의뢰지검체정보.xrw", "/root/main/docuno/docunoinfo", "modeless", "460", "606");
- }
- else
- {
- /* 2008.12.24 ms2003 change...
- var infinfo = window.children("SPLPJ00100_의뢰지검체정보.xrw");
- if (infinfo == null) return false;
- else infinfo.close();
- */
- var sPath = "/root/main/prcpcnfm/prcpcnfmlist";
-
- if(model.getValue(sPath + "[" + grd_prcplist.mouseRow + "]/pid") != "")
- {
- model.makeValue(sPath + "[" + grd_prcplist.row + "]/testhngnm",
- model.getValue(sPath + "[" + grd_prcplist.row + "]/testnm"));
- model.makeValue(sPath + "[" + grd_prcplist.row + "]/reprspccd",
- model.getValue(sPath + "[" + grd_prcplist.row + "]/mmospccd"));
- lpzfExeReqFrmInfo(sPath, grd_prcplist, grd_prcplist.row);
- }
- }
- }
-
- /* @group : 전달검체수신확인
- * @ver : 2007.02.12 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : "처방리스트" 그리트 클릭 처리 Function
- */
- function fExeOrdListClick()
- {
- switch (grd_prcplist.col) {
- case COL_SPCINFO : fExePopupOpenSpeciman();
- break;
- }
- }
-
- /* @group : 전달검체수신확인
- * @ver : 2007.05.07 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 전달검체 및 수신확인 검체 조회 처리 Function
- */
- function fGetPrcpCnfmList(param)
- {
- var bState = false;
- var iMaxRowCnt = 0;
- var sDeptFlagCd = "";
- var sNode = "/root/main/prcpcnfm/prcpcnfmlist";
- var sOrgNode = "/root/main/prcplist/prcpcnfmlist";
- var sMthdNode = "/root/init/hospenv/hospenvinfo/recvqualmthdcd";
-
- // 입력된 바코드번호의 존재여부를 검색
- if (!fExeBarCdNoSea(ipt_barcdno.currentText, getNodesetCount(sNode)))
- {
- return false;
- }
-
- // 선 조회일 경우 처리(0:선조회, 1:후조회)
- if (model.getValue(sMthdNode) == "0")
- {
- //-------------------------------------
- // 바코드번호 입력 후 검색 할 경우 처리
- if (param == "0")
- {
-
- model.removeNodeset("/root/send");
- model.removeNodeset("/root/main/spcbarcdstat/spcbarcdstatinfo");
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/spcbarcdno", ipt_barcdno.currentText);
-
- if (submit("TRLPJ00203"))
- {
- // 검색방법:미확인
- if (model.getValue("/root/init/seaflagcd") == "0")
- {
- if (model.getValue("/root/main/spcbarcdstat/spcbarcdstatinfo/spcstatcd") != "0")
- {
- messageBox(model.getValue("/root/main/spcbarcdstat/spcbarcdstatinfo/spcstatnm"), "I007");
- return false;
- }
- }
- else if (model.getValue("/root/init/seaflagcd") == "1")
- {
- if (model.getValue("/root/main/spcbarcdstat/spcbarcdstatinfo/spcstatcd") != "2"
- && model.getValue("/root/main/spcbarcdstat/spcbarcdstatinfo/spcstatcd") != "5")
- {
- messageBox(model.getValue("/root/main/spcbarcdstat/spcbarcdstatinfo/spcstatnm"), "I007");
- return false;
- }
- }
- }
- else
- {
- messageBox("바코드 정보를 조회할 수 없습니다!", "I007");
- return false;
- }
- }
- else
- {
- model.removeNodeset(sNode);
- TRLPJ00201.attribute("add") = "";
- bState = true;
- grd_prcplist.rebuild();
- }
- }
- else
- {
- bState = true;
-
- //-------------------------------------
- // 바코드번호 입력 후 검색 할 경우 처리
- if (param == "0")
- {
- TRLPJ00201.attribute("add") = "bottom";
- }
- else
- {
- TRLPJ00201.attribute("add") = "";
- grd_prcplist.rebuild();
- }
- }
-
- //------------
- if (bState)
- {
- //---------------------------------
- model.removeNodeset("/root/send");
- sDeptFlagCd = model.getValue("/root/init/deptlist/dept[deptcd='"+model.getValue("/root/init/trsmdeptcd")+"']/deptflagcd");
-
- //----------------------------------------------------------------------
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd")); // 기관코드
- model.makeValue("/root/send/fromdd", model.getValue("/root/init/ddfrom")); // 검색시작일자
- model.makeValue("/root/send/todd", model.getValue("/root/init/ddto")); // 검색종료일자
- model.makeValue("/root/send/barcdno", model.getValue("/root/init/barcdno")); // 바코드번호
- model.makeValue("/root/send/delivedeptcd", model.getValue("/root/init/trsmdeptcd")); // 발송과코드
- model.makeValue("/root/send/ddflagcd", model.getValue("/root/init/ddflagcd")); // 일자구분코드(0:발송일자,1:수신일자)
- model.makeValue("/root/send/refflagcd", model.getValue("/root/init/seaflagcd")); // 검색구분코드(0:미확인,1:확인,2:전체)
- model.makeValue("/root/send/trsmdeptcd", model.getValue("/root/init/trsmdeptcd")); // 발송과
- model.makeValue("/root/send/deptflagcd", sDeptFlagCd); // 발송과 구분(E:시행부서)
-
- model.makeValue("/root/send/pidno", model.getValue("/root/init/pidno")); // 등록번호
-
- //------------------------
- if (submit("TRLPJ00201"))
- {
- // 후 조회, 바코드입력시에만 처리
- if (model.getValue(sMthdNode) != "0" && param == "0")
- {
- //---------------------------------------------------------------
- iMaxRowCnt = getNodesetCount("/root/main/prcpcnfm/prcpcnfmlist");
- if (iMaxRowCnt > 25)
- {
- grd_prcplist.topRow = Number(iMaxRowCnt) - 25;
- }
-
- // 바코드로 조회한 경우 해당되는 바코드의 색을 변경
- grd_prcplist.rowstyle(grd_prcplist.rows-1, "data", "background-color") = "#99ffcc";
- }
- else if (model.getValue(sMthdNode) == "0") // 선조회일 경우 자동선택을 비활성화 한다.
- {
- for (var iNo=1; iNo <= getNodesetCount(sNode); iNo++)
- {
- model.setValue(sNode+"["+iNo+"]/choi", "false");
- }
- }
-
- /*
- //--------------------------------------------
- // 검체수신확인일 경우 접수자료의 Row색을 변경
- if (model.getValue("/root/init/seaflagcd") == "1") {
-
- //--------------------------
- grd_prcplist.rebuildStyle();
- grd_prcplist.rebuild();
-
- var iTotRow = Number(getNodesetCount(sNode));
-
- //--------------------------------------
- for (var iNo=1; iNo <= iTotRow; iNo++) {
-
- //----------------------------------------------------
- if (model.getValue(sNode+"["+iNo+"]/acptdt") == "-" ||
- model.getValue(sNode+"["+iNo+"]/acptdt") == "") {
- grd_prcplist.rowstyle(iNo, "data", "background-color") = "red";
- }
- }
- }
- */
- }
-
- //감염정보표시
- for (var iNo=1; iNo <= getNodesetCount(sNode); iNo++) {
- if(model.getValue(sNode+"["+ iNo +"]/disp1") == "Y") {
- grd_prcplist.cellstyle("background-image", iNo, grd_prcplist.colRef("disp1img")) = "../../../com/hismainweb/images/injector_en.gif"
- } else {
- grd_prcplist.cellstyle("background-image", iNo, grd_prcplist.colRef("disp1img")) = "../../../com/hismainweb/images/icnRSTFLAG_N.gif"
- }
-
- if(model.getValue(sNode+"["+ iNo +"]/disp2") == "Y") {
- grd_prcplist.cellstyle("background-image", iNo, grd_prcplist.colRef("disp2img")) = "../../../com/hismainweb/images/touch_en.gif"
- } else {
- grd_prcplist.cellstyle("background-image", iNo, grd_prcplist.colRef("disp2img")) = "../../../com/hismainweb/images/icnRSTFLAG_N.gif"
- }
-
- if(model.getValue(sNode+"["+ iNo +"]/disp3") == "Y") {
- grd_prcplist.cellstyle("background-image", iNo, grd_prcplist.colRef("disp3img")) = "../../../com/hismainweb/images/air_en.gif"
- } else {
- grd_prcplist.cellstyle("background-image", iNo, grd_prcplist.colRef("disp3img")) = "../../../com/hismainweb/images/icnRSTFLAG_N.gif"
- }
- }
-
- }
-
- model.setFocus("ipt_barcdno");
-
- /* ******************************************************************************************
- //--------------------------------------------------
- // 조회버튼을 클릭한 경우 처방목록 Instance를 초기화
- if (param == "1") {
- model.removeNodeset(sNode);
- }
-
- var iRowNo = getNodesetCount(sNode);
-
- //------------------------
- if (Number(iRowNo) <= 0) {
- model.makeNode(sNode);
- }
-
- //-----------------------------------------------------------
- //grd_prcplist.rebuildStyle(1, 1, iRowNo, grd_prcplist.cols-1);
- //grd_prcplist.refresh();
- //grd_prcplist.allstyle( "data", "background-color" ) = "#ffffff";
-
- //---------------------------------------------
- // 입력된 바코드번호가 그리드에 존재하는지 검사
- if (!fExeBarCdNoSea(ipt_barcdno.currentText, iRowNo)) {
- // Continue
- } else {
- //---------------------------------
- model.removeNodeset("/root/send");
-
- sDeptFlagCd = model.getValue("/root/init/deptlist/dept[deptcd='"+model.getValue("/root/init/trsmdeptcd")+"']/deptflagcd");
-
- //----------------------------------------------------------------------
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd")); // 기관코드
- model.makeValue("/root/send/fromdd", model.getValue("/root/init/ddfrom")); // 검색시작일자
- model.makeValue("/root/send/todd", model.getValue("/root/init/ddto")); // 검색종료일자
- model.makeValue("/root/send/barcdno", model.getValue("/root/init/barcdno")); // 바코드번호
- model.makeValue("/root/send/delivedeptcd", model.getValue("/root/init/trsmdeptcd")); // 발송과코드
- model.makeValue("/root/send/ddflagcd", model.getValue("/root/init/ddflagcd")); // 일자구분코드(0:발송일자,1:수신일자)
- model.makeValue("/root/send/refflagcd", model.getValue("/root/init/seaflagcd")); // 검색구분코드(0:미확인,1:확인,2:전체)
- model.makeValue("/root/send/trsmdeptcd", model.getValue("/root/init/trsmdeptcd")); // 발송과
- model.makeValue("/root/send/deptflagcd", sDeptFlagCd); // 발송과 구분(E:시행부서)
-
- //------------------------
- if (submit("TRLPJ00201")) {
-
- //----------------------------------------
- // 선조회일 경우 자동선택을 비활성화 한다.
- if (model.getValue("/root/init/hospenv/hospenvinfo/recvqualmthdcd") == "0") {
- for (var iNo=1; iNo <= getNodesetCount(sOrgNode); iNo++) {
- model.setValue(sOrgNode+"["+iNo+"]/choi", "false");
- }
- }
-
- //--------------------------------------------------------------------------------------------------
- copyNodesetType("/root/main/prcpcnfm/prcpcnfmlist", "/root/main/prcplist/prcpcnfmlist[*]", "after");
-
- //------------------------
- if (Number(iRowNo) <= 0) {
- model.removeNodeset("/root/main/prcpcnfm/prcpcnfmlist[1]");
- }
-
- //---------------------------------------------------------------
- iMaxRowCnt = getNodesetCount("/root/main/prcpcnfm/prcpcnfmlist");
- if (iMaxRowCnt > 25) {
- grd_prcplist.topRow = Number(iMaxRowCnt) - 25;
- }
- //--------------------
- // 후 조회일 경우 처리
- if (model.getValue("/root/init/hospenv/hospenvinfo/recvqualmthdcd") != "0") {
- grd_prcplist.refresh();
- //------------------------------------------------
- //for (var iNo=iRowNo+1; iNo <= iMaxRowCnt; iNo++) {
- grd_prcplist.rowstyle(Number(iRowNo)+1, "data", "background-color") = "#99ffcc";
- //}
- }
- }
- }
-
- //---------------------
- grd_prcplist.refresh();
- ************************************************************************************* */
-
- //자동조회.
- //fExeAutoAcptFlagSet(param);
- }
-
- /* @group : 전달검체수신확인
- * @ver : 2007.05.07 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 바코드번호 입력란에서 Enter Key입력 시 처리 Function
- */
- function fGetBarCdInfo()
- {
- if(event.keyCode == 13)
- {
- model.setValue("/root/init/hospenv/hospenvinfo/recvqualmthdcd", "0");
-
- fSelectBarcdInfo("1");
- }
- }
-
- function fSelectBarcdInfo(sCheck)
- {
- var strNode = "/root/main/prcpcnfm/prcpcnfmlist";
-
- sBarCode = ipt_barcdno.currentText;
-
- if((event.target == "ipt_barcdno") || (event.target == "ipt_pidno") )
- {
- if(sCheck == "1")
- {
- model.setvalue("/root/init/pidno", "-");
- model.setvalue("/root/init/barcdno", ipt_barcdno.currentText.toUpperCase());
- ipt_barcdno.refresh();
- }
- else if(sCheck == "2")
- {
- model.setvalue("/root/init/barcdno", "-");
- model.setvalue("/root/init/pidno", ipt_pidno.currentText);
- ipt_pidno.refresh();
- }
-
- // 바코드 길이 검사(11자리가 아닐경우 바코드 오류)
- if ((sCheck == "1") && (ipt_barcdno.currentText.length != 11))
- {
- messageBox("바코드번호 오류", "E008");
- return false;
- }
-
- fGetPrcpCnfmList("0");
-
- if(sCheck == "1")
- {
- model.makeValue("/root/init/barcdno", "");
-
- ipt_barcdno.selBegin = 0;
- ipt_barcdno.selEnd = ipt_barcdno.currentText.length;
- model.setFocus("ipt_barcdno");
- }
- else if(sCheck == "2")
- {
- model.makeValue("/root/init/pidno", "");
-
- ipt_barcdno.selBegin = 0;
- ipt_barcdno.selEnd = ipt_pidno.currentText.length;
- model.setFocus("ipt_pidno");
- }
-
- model.refresh();
- }
-
- }
-
- /* @group : 전달검체수신확인
- * @ver : 2007.05.07 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 바코드번호 검색 처리 Function
- */
- function fExeBarCdNoSea(sBarCdNo, pMaxRow) {
-
- var strNode = "/root/main/prcpcnfm/prcpcnfmlist";
- var iFindRowNo = -1;
- var iRowNo = 1;
- //------------------------------
- if (sBarCdNo == "") return true;
-
-
- do {
- //-----------------------------------------------------------------
- iFindRowNo = grd_prcplist.findRow(sBarCdNo, iRowNo, grd_prcplist.colRef("spcbarcdno"), true, true);
- iRowNo = Number(iFindRowNo) + 1;
-
- //---------------------------
- if (Number(iFindRowNo) > 0) {
- if (model.getValue(strNode + "[" + iFindRowNo + "]/choi") == "false") {
- model.setValue(strNode + "[" + iFindRowNo + "]/choi", "true");
- grd_prcplist.rowstyle(iFindRowNo, "data", "background-color") = "#99ffcc";
-
- if ((Number(pMaxRow) - 25) > 0) {
- if (iFindRowNo < (Number(pMaxRow) - 25)) {
- grd_prcplist.topRow = iFindRowNo;
- } else {
- grd_prcplist.topRow = Number(pMaxRow) - 25;
- }
- }
-
- // return false;
- } else {
- messageBox("검색된 바코드번호", "E008");
- return false;
- }
- } else {
- return true;
- }
- } while (iRowNo != -1);
- }
-
- /* @group : 전달검체수신확인
- * @ver : 2007.05.07 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 전달검체 수신확인 Function
- */
- function fExePrcpCnfm(param)
- {
- var strNode = "/root/main/prcpcnfm/prcpcnfmlist";
- var iRowNo = grd_prcplist.findRow("true", 1, 0, true, true);
- var iNo = 0;
-
- if (iRowNo <= 0) {
- messageBox("처방을 선택하여 주십시오! 확인을", "E001");
- return false;
- }
-
- // 확인취소일 경우 취소사유 입력여부를 검사
- if (param == "1") {
- if (!isRequiredControls("cbo_cnclresn")) return false;
- }
-
- // 선택여부에 따라 접수검체가 존재하는지 검사
- for (iRowNo=1; iRowNo <= getNodesetCount(strNode); iRowNo++)
- {
- if (model.getValue(strNode + "[" + iRowNo + "]/choi") == "true")
- {
- if (model.getValue(strNode + "[" + iRowNo + "]/preststatcd") == "5" &&
- model.getValue(strNode + "[" + iRowNo + "]/spcstatcd") == "5")
- {
- //--------------------------------------------------------------------------------
- if (param == "1" && model.getValue(strNode+"["+iRowNo+"]/workflagcd") == "1002")
- {
- // Continue
- } else
- {
- messageBox("접수된 처방은 확인 및 확인취소를 ", "E001");
- return false;
- }
- }
- }
- }
-
- //--------------------
- // 그리드 상태 초기화
- grd_prcplist.clearStatus();
-
- //-------------------------------------
- // 선택여부에 따라 그리드 변경상태를 설정
- for (iRowNo=1; iRowNo <= getNodesetCount(strNode); iRowNo++)
- {
- if (model.getValue(strNode + "[" + iRowNo + "]/choi") == "true")
- {
- //검체접수자를 화면 오픈시 확인한 사람으로 등록.
- model.setValue(strNode + "[" + iRowNo + "]/cnfmid", model.getValue("/root/temp/loginid"));
-
- grd_prcplist.addStatus(iRowNo, "update");
- }
-
- //--------------
- // 처리구분 추가
- model.makeValue(strNode + "[" + iRowNo + "]/tretflag", param);
- model.makeValue(strNode + "[" + iRowNo + "]/resncdkind", "20");
- model.makeValue(strNode + "[" + iRowNo + "]/resncd", model.getValue("/root/hidden/resncd"));
- }
-
- //---------------------------------
- model.removeNodeset("/root/send");
-
- //------------------------------------------------------------------
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd")); // 기관코드
- model.makeValue("/root/send/prcpdata", grd_prcplist.getUpdateData()); // 처방목록
-
- // 검채 수신 확인 갯수 구하기 iNo
- for (iRowNo=1; iRowNo <= getNodesetCount(strNode); iRowNo++)
- {
- var sBarcdTmp = model.getValue(strNode + "[" + iRowNo + "]/spcbarcdno");
-
- if (model.getValue(strNode + "[" + iRowNo + "]/choi") == "true")
- {
- if(iNo == 0)
- {
- iAcptPrcpCnt[iNo] = sBarcdTmp;
- iNo++;
- }
- else
- {
- var iCheck = 0;
- for(var i = 0; i < iAcptPrcpCnt.length; i++)
- {
- if (sBarcdTmp == iAcptPrcpCnt[i])
- {
- iCheck = 1;
- break;
- }
- }
-
- if(iCheck == 0)
- {
- iAcptPrcpCnt[iNo] = sBarcdTmp;
- iNo++;
- }
-
- }
- }
- }
-
- if(iAcptPrcpCnt.length > 0)
- {
- if(param == "0")
- {
- messageBox("바코드 " + iAcptPrcpCnt.length + " 건 확인 ", "I001");
- }
- else if (param == "1")
- {
- messageBox("바코드 " + iAcptPrcpCnt.length + " 건 확인취소 ", "I001");
- }
-
- iAcptPrcpCnt = Array();
- iCnt = 0;
- }
-
-
- //-------------------------
- if (submit("TXLPJ00201"))
- {
- model.removeNodeset(strNode+"[choi='true']");
- grd_prcplist.rebuildStyle();
- grd_prcplist.refresh();
-
- // 추가 검체에 대한 바코드 출력
- fExeBarCdPrnt();
- } else
- {
- messageBox("수신확인을 ", "E009");
- }
- model.setFocus("ipt_barcdno");
- }
-
- /* @group : 전달검체수신확인
- * @ver : 2007.05.07 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 그리드 자료 Excel로 저장 처리 function
- */
- function fExeBarCdPopupCall() {
-
- var count = getNodesetCount("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
-
- if(count == 0) {
- model.makeNode("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
- }
- modal("SPLLC90100" , "","","","","/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
- }
-
- /* @group : 전달검체수신확인
- * @ver : 2008.08.07 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 바코드 출력 처리 function
- */
- function fExeBarCdPrnt() {
- lpzfAcptBarCd("0", 1,
- "/root/main/barcdinfo/barcdlist",
- "/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
- }
-
- /* @group : 전달검체수신확인
- * @ver : 2008.09.02 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 바코드 출력 처리 function
- */
- function fExeRefMthdChange() {
- fGetPrcpCnfmList("1");
- }
-
- /* @group : 전달검체수신확인
- * @ver : 2008.11.20 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 바코드 재출력 처리 function
- */
- function fExeBarCdRePrnt() {
-
- var sList = "";
- var iFindNo = 0;
- var sNode = "/root/main/prcpcnfm/prcpcnfmlist";
-
- iFindNo = grd_prcplist.findRow("true", 1, 0, true, true);
- if (Number(iFindNo) <= 0) {
- messageBox("재출력 바코드를 선택하여 주십시오!", "I007");
- return false;
- }
-
- //-----------------------------------------------------
- for (var iNo=1; iNo <= getNodesetCount(sNode); iNo++) {
-
- if (model.getValue(sNode+"["+iNo+"]/choi") == "true") {
- sList += model.getValue(sNode+"["+iNo+"]/spcbarcdno") + ",";
- }
- }
- sList = sList.substr(0, sList.length-1);
-
- //--------------------------------
- // 바코드 재출력에 필요한 정보조회
- model.removeNodeset("/root/send");
- model.removeNodeset("/root/main/spcbarcd/barcdlist");
-
- //---------------------------------------------------------------------
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/fromdd", model.getValue("/root/init/ddfrom"));
- model.makeValue("/root/send/todd", model.getValue("/root/init/ddto"));
- model.makeValue("/root/send/spcbarcdno", sList);
-
- if (submit("TRLPJ00202")) {
- lpzfAcptBarCd("1", 1,
- "/root/main/spcbarcd/barcdlist",
- "/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
- }
- }
-
- /* @group : 전달검체수신확인
- * @ver : 2008.11.20 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 환자번호롤 조회 function
- */
- function fExeSelectInfo()
- {
- if(event.keyCode == 13)
- {
- model.setValue("/root/init/hospenv/hospenvinfo/recvqualmthdcd", "1");
- model.removeNodeset("/root/main/prcpcnfm/prcpcnfmlist");
- grd_prcplist.refresh();
-
- fSelectBarcdInfo("2");
-
- model.setValue("/root/init/hospenv/hospenvinfo/recvqualmthdcd", "0");
- }
- }
-
- /* @group : 조직검체수신확인
- * @ver : 2006.11.01 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 자동접수 상태변환 Function
- */
- function fExeAutoAcptFlagSet(param){
- //------------------
- // 자동접수여부 검사
- if (sAutoSearYN == "N") {
-
- if (model.getValue("/root/hidden/interval") == "" || Number(model.getValue("/root/hidden/interval")) <= 0) {
- messageBox("자동조회를 선택할 경우 자동조회시간을 입력하여 주십시오!", "E999");
- return false;
- } else if (Number(model.getValue("/root/hidden/interval")) < 10) {
- messageBox("자동조회시간은 10초이상 되어야 합니다!", "E999");
- return false;
- }
-
- if(interval_id != "") {
- window.clearinterval(interval_id);
- interval_id = "";
- }
- //----------------------------------------------------------------------
- var interval_time = Number(model.getValue("/root/hidden/interval"));
- button89.attribute("text") = "자동조회 On";
- interval_id = window.setinterval("fGetPrcpCnfmList("+ param +")", interval_time * 1000);
- sAutoSearYN = "Y";
- ipt_interval.disabled = true;
-
- } else {
- button89.attribute("text") = "자동조회 Off";
- window.clearinterval(interval_id);
- interval_id = "";
- sAutoSearYN = "N"
- ipt_interval.disabled = false;
- }
- button89.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1211;2,784;" style="border-width:4px; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:800px; height:15px; ">전달검체 수신확인</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:55px; width:370px; height:14px; font-family:굴림체; font-size:9pt; ">처방목록</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194; y2:70px; "/>
- <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; 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; "/>
- <input id="ipt_barcdno" ref="/root/init/barcdno" class="input_search" navindex="1" imemode="disabled" _chartype="upper" style="left:119px; top:8px; width:141px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fGetBarCdInfo();
- ]]>
- </script>
- </input>
- <caption id="caption2" class="search_name" style="left:17px; top:9px; width:110px; height:17px; font-family:굴림체; font-size:9pt; vertical-align:middle; ">바코드번호:</caption>
- <caption id="caption4" class="search_no_b" style="left:774px; top:8px; width:21px; height:17px; font-family:굴림체; font-size:10pt; text-align:center; vertical-align:middle; ">~</caption>
- <select1 id="cmbddflag" ref="/root/init/ddflagcd" class="combo_search" navindex="4" appearance="minimal" style="left:591px; top:8px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>발송일자</label>
- <value>0</value>
- </item>
- <item>
- <label>수신일자</label>
- <value>1</value>
- </item>
- </choices>
- </select1>
- <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="input3" ref="/root/init/ddto" class="input_search" navindex="6" inputtype="date" format="yyyy-mm-dd" mask="exclude" showmask="true" style="left:791px; top:8px; width:84px; height:19px; "/>
- <input id="ipt_ddfrom" ref="/root/init/ddfrom" class="input_search" navindex="5" inputtype="date" format="yyyy-mm-dd" mask="exclude" showmask="true" style="left:693px; top:8px; width:84px; height:19px; "/>
- <caption id="caption3" class="search_name" visibility="hidden" style="left:390px; top:9px; width:80px; height:17px; font-family:굴림체; font-size:9pt; vertical-align:middle; ">진료과:</caption>
- <select1 id="cmbseaflagcd" ref="/root/init/seaflagcd" 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>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fExeRefMthdChange();
- ]]>
- </script>
- </select1>
- <button id="btn_sea" accesskey="f4" 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[
- fGetPrcpCnfmList("1");
- ]]>
- </script>
- </button>
- <input id="ipt_pidno" ref="/root/init/pidno" class="input_search" navindex="1" style="left:398px; top:9px; width:112px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fExeSelectInfo();
- ]]>
- </script>
- </input>
- <caption id="caption7" class="search_name" style="left:308px; top:10px; width:95px; height:17px; font-family:굴림체; font-size:9pt; vertical-align:middle; ">등록번호:</caption>
- <select1 id="cmb_trsmdeptcd" ref="/root/init/trsmdeptcd" class="combo_search" navindex="2" visibility="hidden" appearance="minimal" itemcount="20" style="left:465px; top:8px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/deptlist/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <datagrid id="grd_prcplist" nodeset="/root/main/prcpcnfm/prcpcnfmlist" class="datagrid2" caption="선택^기관코드^감염정보^감염정보^감염정보^caption1^caption2^caption3^검체명^바코드번호^검체정보^검체정보^내시경
소견^등록번호^성명^진료과코드^진료과^발송과^진료의ID^진료
의사^검사코드^처방명^수납
구분^처방등록일시^발송시간^발송자^수신시간^수신자^전송일자^전송번호^전송일련번호^검체전송일자^검체전송번호^검체전송일련번호^현재상태코드^처방상태코드^처방발생구분^처방일자^처방번호^실시처방고유번호^처리구분^취소구분코드^취소코드^spcstatcd^workflagcd^접수일시^병리번호^의뢰지구분^cnfmid^reqfrmVal^mmospccd" colsep="^" colwidth="30, 0, 25, 25, 25, 100, 100, 100, 100, 100, 35, 25, 44, 70, 70, 0, 60, 70, 0, 60, 80, 200, 50, 100, 100, 60, 100, 60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 120, 75, 100, 0, 100, 100" dataheight="25" explorerbar="sortshowmove" mergecellsfixedrows="bycolrec" navindex="9" style="left:0px; top:75px; width:1194px; height:665px; ">
- <col ref="choi" type="checkbox"/>
- <col ref="instcd"/>
- <col ref="disp1img" type="output"/>
- <col ref="disp2img" type="output"/>
- <col ref="disp3img" type="output"/>
- <col ref="disp1" type="output" visibility="hidden"/>
- <col ref="disp2" type="output" visibility="hidden"/>
- <col ref="disp3" type="output" visibility="hidden"/>
- <col ref="spcnm"/>
- <col class="text_center" ref="spcbarcdno"/>
- <col class="text_center" ref="spccnt"/>
- <col checkimage="../../../com/commonweb/images/icon_search.gif" type="checkbox" uncheckimage="../../../com/commonweb/images/icon_search.gif"/>
- <col class="text_center" ref="formrecseq"/>
- <col class="text_center" ref="pid"/>
- <col class="text_center" ref="patnm"/>
- <col ref="orddeptcd"/>
- <col class="text_center" ref="orddeptnm"/>
- <col class="text_center" ref="oproomnm"/>
- <col ref="orddrid"/>
- <col class="text_center" ref="orddrnm"/>
- <col ref="testcd"/>
- <col ref="testnm"/>
- <col class="text_center" ref="rcptflag"/>
- <col ref="prcprgstdt"/>
- <col ref="delivedt"/>
- <col class="text_center" ref="delivenm"/>
- <col ref="cnfmdt"/>
- <col class="text_center" ref="cnfmnm"/>
- <col ref="trandd"/>
- <col ref="tranno"/>
- <col ref="transeqno"/>
- <col ref="spctrandd"/>
- <col ref="spctranno"/>
- <col ref="spctranseqno"/>
- <col ref="preststatcd"/>
- <col ref="orgprcpstatcd"/>
- <col ref="prcpgenrflag"/>
- <col ref="prcpdd"/>
- <col ref="prcpno"/>
- <col ref="execprcpuniqno"/>
- <col ref="tretflag"/>
- <col ref="resncdkind"/>
- <col ref="resncd"/>
- <col ref="spcstatcd"/>
- <col ref="workflagcd"/>
- <col ref="acptdt"/>
- <col ref="ptno"/>
- <col ref="reqfrmflagcd" visibility="hidden"/>
- <col ref="cnfmid"/>
- <col ref="reqfrmno" visibility="hidden"/>
- <col ref="mmospccd" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fExeOrdListClick();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_prcplist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftermovecolumn">
- <![CDATA[
- grd_prcplist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var sNode = "/root/main/prcpcnfm/prcpcnfmlist";
- var sBarCdNo = "";
-
- if ((grd_prcplist.col == grd_prcplist.colRef("choi")) && (grd_prcplist.row >= grd_prcplist.fixedRows) && (grd_prcplist.isCell(event.target))){
-
- sBarCdNo = model.getValue(sNode+"["+ grd_prcplist.row +"]/spcbarcdno");
-
- for (var iNo=1; iNo <= getNodesetCount(sNode); iNo++) {
- if(model.getValue(sNode+"["+ iNo +"]/spcbarcdno") == sBarCdNo) {
- model.setValue(sNode+"["+iNo+"]/choi", model.getValue(sNode+"["+ grd_prcplist.row +"]/choi"));
- if(model.getValue(sNode+"["+ grd_prcplist.row +"]/choi") == "false") {
- grd_prcplist.rowstyle(iNo, "data", "background-color") = "#FFFFFF";
- } else {
- grd_prcplist.rowstyle(iNo, "data", "background-color") = "#99ffcc";
- }
- }
- }
-
- grd_prcplist.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <group id="grp_resncancle" visibility="hidden" style="left:390px; top:195px; width:420px; height:75px; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:4px; top:5px; width:411px; height:65px; background-color:#fffbf2; border-color:#ffd799; border-width:3px; "/>
- <caption id="cap_cnclresn" class="cell_2" style="left:15px; top:15px; width:80px; height:23px; font-family:돋움; vertical-align:middle; ">취소사유</caption>
- <line id="line2" class="line_3" style="x1:16px; y1:15px; x2:400px; y2:15px; "/>
- <select1 id="cbo_cnclresn" ref="/root/hidden/resncd" class="combo_default" navindex="14" appearance="minimal" style="left:15px; top:40px; width:385px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/resncd/resncdlist">
- <label ref="resncnts"/>
- <value ref="resncd"/>
- </itemset>
- </choices>
- </select1>
- <line id="line3" class="line_3" style="x1:16px; y1:60px; x2:400px; y2:60px; "/>
- <button id="btn_cncresn" class="btn2_letter4" navindex="16" style="left:334px; top:19px; width:64px; height:19px; ">
- <caption>확인취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExePrcpCnfm("1");
- grp_resncancle.visible = false;
- ]]>
- </script>
- </button>
- </group>
- <input id="ipt_interval" ref="/root/hidden/interval" format="##" style="left:1139px; top:50px; width:40px; height:19px; text-align:right; "/>
- <button id="button89" class="btn5_letter6" style="left:1053px; top:50px; width:86px; height:19px; ">
- <caption>자동조회 Off</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeAutoAcptFlagSet("1");
- ]]>
- </script>
- </button>
- <caption id="caption8" style="left:1179px; top:51px; width:15px; height:20px; ">초</caption>
- </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_cnfm" class="btn4_letter4" navindex="13" style="left:1114; top:3px; width:80px; height:22px; ">
- <caption>확인취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_resncancle.visible = true;
- //fExePrcpCnfm("1");
- ]]>
- </script>
- </button>
- <button id="btn_excel" accesskey="f9" class="btn6_letter8" navindex="10" style="left:5px; top:3px; width:92px; height:22px; ">
- <caption>EXCEL저장 [F9]</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- lpzfExeSaveToExcel(grd_prcplist, "전달검체수신확인");
- ]]>
- </script>
- </button>
- <button id="btn_clear" class="btn3_letter3" navindex="11" style="left:136px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/main/prcpcnfm/prcpcnfmlist");
- grd_prcplist.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_save" accesskey="f2" class="btn4_letter5" navindex="12" style="left:1018px; top:3px; width:92px; height:22px; ">
- <caption>확인 [F2]</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExePrcpCnfm("0");
- fGetPrcpCnfmList("1");
- ]]>
- </script>
- </button>
- <button id="button26" class="btn3_letter5" style="left:207px; top:3px; width:92px; height:22px; ">
- <caption>프린터설정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeBarCdPopupCall();
- ]]>
- </script>
- </button>
- <button id="btn_reprnt" class="btn3_letter6" style="left:300px; top:3px; width:96px; height:22px; ">
- <caption>바코드재출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeBarCdRePrnt();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|