123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLPR00700_동결절편결과등록.xrw
- * 설 명 : 동결절편결과등록
- * 설 계 자 : (주)에이씨케이 - 황상미
- * 작 성 자 : (주)에이씨케이 - 황상미
- * 작 성 일 : 2006.12.13
- * 수정이력 : 2007.08.19
- * 기 타 :
- -->
- <?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>
- <frznptno>
- <frznptnolist>
- <instcd/>
- <ptno/>
- <dispptno/>
- <pid/>
- <patnm/>
- <acptdd/>
- <acpttm/>
- <oprsrvno/>
- <oproomcd/>
- <oproomnm/>
- <agesex/>
- <orddrnm/>
- <deptnm/>
- <orgacptdd/>
- <cstecnts/>
- <readdrnm1/>
- </frznptnolist>
- </frznptno>
- <frzncste>
- <frzncstelist>
- <instcd/>
- <ptno/>
- <dispptno/>
- <spcacptdd/>
- <spcacptno/>
- <spccd/>
- <spcnm/>
- <spcacptseqno/>
- <csteno/>
- <cstecnts/>
- <acptdd/>
- <acpttm/>
- <indd/>
- <intm/>
- <readdd/>
- <readtm/>
- <readrslt/>
- <readdrnm1/>
- <readdrid1/>
- <readdrnm2/>
- <readdrid2/>
- <readdrnm3/>
- <readdrid3/>
- <delyflagcd/>
- <delyresncd/>
- <keepflagcd/>
- <cmtcnts/>
- <oprsrvno/>
- <oproomcd/>
- <oproomnm/>
- <pid/>
- <patnm/>
- <delyresnnm/>
- <choi/>
- <extrtm/>
- <cnfmtm/>
- <orgintm/>
- <orggrostm/>
- <orgcryostattm/>
- <inptflagcd/>
- <tat/>
- <orgreaddrid1/>
- <orgreadtm/>
- <grosdd/>
- <cryostatdd/>
- </frzncstelist>
- </frzncste>
- <frzntat>
- <frzntatlist>
- <ptno/>
- <dispptno/>
- <pid/>
- <hngnm/>
- <roomcd/>
- <testhngnm/>
- <deptengabbr/>
- <spcnm/>
- <extrtm/>
- <cnfmdd/>
- <cnfmtm/>
- <acptdd/>
- <acpttm/>
- <grostm/>
- <cryostattm/>
- <indd/>
- <intm/>
- <readdd/>
- <readtm/>
- <cnfmacptmin/>
- <cnfmacpttm/>
- <acptmakemin/>
- <acptmaketm/>
- <acptreadmin/>
- <acptreadmin/>
- <spcbarcdno/>
- </frzntatlist>
- </frzntat>
- <etcrslt>
- <etcrsltcnt/>
- </etcrslt>
- </main>
- <send/>
- <init>
- <ptnocode/>
- <fromyear/>
- <fromptno/>
- <toyear/>
- <toptno/>
- <refflagcd>1</refflagcd>
- <refval/>
- <acptfromdd/>
- <acpttodd/>
- <sysdt>
- <sysdtinfo>
- <sysdd/>
- <systm/>
- </sysdtinfo>
- </sysdt>
- <ptnocd>
- <ptnocdlist>
- <instcd/>
- <ptnocd/>
- <ptnonm/>
- </ptnocdlist>
- </ptnocd>
- <hospenv>
- <hospenvinfo>
- <instcd/>
- <lendrtnterm/>
- <recvqualmthdcd/>
- <plgydeptcd/>
- <plgyteamcd/>
- <doctjobgradcd/>
- <teamjobgradcd/>
- </hospenvinfo>
- </hospenv>
- <userinfo>
- <userinfolist>
- <userid/>
- <usernm/>
- <jobkindcd/>
- </userinfolist>
- </userinfo>
- <resncd>
- <resncdlist>
- <instcd/>
- <baseflagcd/>
- <resncd/>
- <resncnts/>
- </resncdlist>
- </resncd>
- </init>
- <hidden>
- <rsltcont/>
- <popupmenu>
- <grid>
- <item>
- <name>결과등록 확장</name>
- <func>fExeCntsView</func>
- </item>
- <item>
- <name>결과예문 조회</name>
- <func>fExeExmpCall</func>
- </item>
- </grid>
- </popupmenu>
- <gridinfo>
- <rowno/>
- </gridinfo>
- <gridinfo>
- <rowno/>
- </gridinfo>
- <grostm/>
- <croystattm/>
- <slidetm/>
- <readtm/>
- </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/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.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="TRLPZ00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/resncd/resncdlist"/>
- <submission id="TRLPZ00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/userinfo/userinfolist"/>
- <submission id="TRLPZ00109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/ptnocd/ptnocdlist"/>
- <submission id="TRLPR00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/frznptno/frznptnolist"/>
- <submission id="TRLPR00702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/frzncste/frzncstelist"/>
- <submission id="TXLPR00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/message"/>
- <submission id="TRLPR00703" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/frzntat/frzntatlist"/>
- <submission id="TRLPR00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/etcrslt/etcrsltcnt"/>
- </model>
- <script type="javascript">
- <![CDATA[
- var iMousCol = ""; // 마우스 선택시 선택 컬럼
- var iMousRow = ""; // 마우스 선택시 선택 로우
- var iCheck = "0"; // 예문 직접 입력인지 컬럼 확장 후 입력인지 구분
- var sInptFlag = "";
-
- /* @group : 동결절편결과등록
- * @ver : 2007.06.04 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 화면초기화 함수
- */
- function fExeInitialize() {
- var sCurDate = "";
-
- //--------------------------------------------------
- model.removeNodeset("/root/main/frznptno/frznptnolist");
- model.removeNodeset("/root/main/frzncste/frzncstelist");
-
- //--------------------------------------------------
- grd_frzncstelist.fixedcellcheckbox(0, grd_frzncstelist.colRef("choi2"))=true;
- grd_frzncstelist.fixedcellcheckbox(0, grd_frzncstelist.colRef("choi3"))=true;
- grd_frzncstelist.fixedcellcheckbox(0, grd_frzncstelist.colRef("choi4"))=true;
- grd_rsltinpt.fixedcellcheckbox(0, grd_rsltinpt.colRef("choi"))=true;
-
- btn_inptrslt.selected = true;
- model.toggle("case2");
- sInptFlag = "inptrslt";
-
- grd_tatlist.colHidden(grd_tatlist.colRef("spcbarcdno")) = true;
-
- //----------------
- // 시스템일시 조회
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- submit("TRLPZ00101", false);
- submit("TRLPZ00102", false);
- submit("TRLPZ00109", false);
-
- //--------------------
- // 지연사유 목록 조회
- model.makeValue("/root/send/baseflagcd", "'D1'");
- submit("TRLPZ00103", false);
-
- //-----------------------------------------
- // 지연사유 목록에서 "전체"를 공백으로 변환
- //model.removeNodeset("/root/init/resncd/resncdlist[resncd = 'ZZZZ']");
- model.makeValue("/root/init/resncd/resncdlist[resncd = 'ZZZZ']/resncnts", " ");
- model.makeValue("/root/init/resncd/resncdlist[resncd = 'ZZZZ']/resncd", "-");
-
- //---------------------------------------------------------
- // 병원환경정보를 취득하여 병리과와 병리팀 코드를 편집한다.
- 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");
- //-------------------------------------------
- model.makeValue("/root/init/refflagcd", "1");
- 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/refval", "");
-
- //------------------------------------------------------------
- sCurDate = model.getValue("/root/init/sysdt/sysdtinfo/sysdd");
- model.makeValue("/root/init/ptnocode", "S");
- 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", "");
-
- //-------------------
- cbo_ptnocd.refresh();
- model.refresh();
- }
-
- /* @group : 동결절편결과등록
- * @ver : 2007.06.04 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 동절절편 병리번호 조회 함수
- */
- function fGetFrznPtNolist() {
-
- var sTemp = "";
-
-
- //--------------------------------
- model.removeNodeset("/root/send");
- model.removeNodeset("/root/main/frzncste/frzncstelist");
-
- //------------------------------------------------
- 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/acptfromdd", model.getValue("/root/init/acptfromdd"));
- model.makeValue("/root/send/acpttodd", model.getValue("/root/init/acpttodd"));
- model.makeValue("/root/send/refflagcd", model.getValue("/root/init/refflagcd"));
- model.makeValue("/root/send/refval", model.getValue("/root/init/refval"));
- 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"));
-
- if(sInptFlag == "tat") {
- //tat 조회
- if(submit("TRLPR00703")) {
- grd_tatlist.autoResize = true;
- grd_tatlist.refresh();
- }
- } else {
- //병리번호 목록 조회
- submit("TRLPR00701");
- }
- }
-
- /* @group : 동결절편결과등록
- * @ver : 2007.06.05 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 동절절편 병리번호 조회 함수
- */
- function fExePtNoGridClick(pRowNo, pBizFlagCd, pInptFlag) {
-
- var sSrcNode = "/root/main/frznptno/frznptnolist";
- var sDescNode = "/root/main/frzncste/frzncstelist";
-
- //----------------------------
- if (pRowNo <= 0) return false;
-
- if(pInptFlag == "fslist"){
- if (grd_frznptnolist.row >= grd_frznptnolist.fixedRows) {
- // Continue
- } else {
- return false;
- }
- } else {
-
- if (grd_frznlist.row >= grd_frznlist.fixedRows) {
- // Continue
- } else {
- return false;
- }
- }
-
- //--------------------------------
- model.removeNodeset("/root/send");
-
- //-----------------------------------------------------------------------------------------
- model.makeValue("/root/send/instcd", model.getValue(sSrcNode + "[" + pRowNo + "]/instcd"));
- model.makeValue("/root/send/ptno", model.getValue(sSrcNode + "[" + pRowNo + "]/ptno"));
-
- //-------------------
- submit("TRLPR00702");
-
-
- //------------------------------------------------------------------
- for (var iRowNo=1; iRowNo <= getNodesetCount(sDescNode); iRowNo++) {
-
- //---------------------
- // 접수일자 기본값 설정
- if (model.getValue(sDescNode + "[" + iRowNo + "]/acptdd") == "-") {
- model.makeValue(sDescNode + "[" + iRowNo + "]/acptdd", model.getValue(sSrcNode + "[" + pRowNo + "]/acptdd"));
- //model.makeValue(sDescNode + "[" + iRowNo + "]/acpttm", model.getValue(sSrcNode + "[" + pRowNo + "]/acpttm"));
- }
- //---------------------
- // 입고일자 기본값 설정
- if (model.getValue(sDescNode + "[" + iRowNo + "]/indd") == "-") {
- model.makeValue(sDescNode + "[" + iRowNo + "]/indd", model.getValue(sSrcNode + "[" + pRowNo + "]/acptdd"));
- //model.makeValue(sDescNode + "[" + iRowNo + "]/intm", model.getValue(sDescNode + "[" + pRowNo + "]/acpttm"));
- }
- //---------------------
- // 판독일자 기본값 설정
- if (model.getValue(sDescNode + "[" + iRowNo + "]/readdd") == "-") {
- model.makeValue(sDescNode + "[" + iRowNo + "]/readdd", model.getValue(sSrcNode + "[" + pRowNo + "]/acptdd"));
- }
- //---------------------
- // 그로스일자일자 기본값 설정
- if (model.getValue(sDescNode + "[" + iRowNo + "]/grosdd") == "-" || model.getValue(sDescNode + "[" + iRowNo + "]/grosdd") == "") {
- model.makeValue(sDescNode + "[" + iRowNo + "]/grosdd", model.getValue(sSrcNode + "[" + pRowNo + "]/acptdd"));
- }
- //---------------------
- // Croystat일자 기본값 설정
- if (model.getValue(sDescNode + "[" + iRowNo + "]/cryostatdd") == "-" || model.getValue(sDescNode + "[" + iRowNo + "]/cryostatdd") == "") {
- model.makeValue(sDescNode + "[" + iRowNo + "]/cryostatdd", model.getValue(sSrcNode + "[" + pRowNo + "]/acptdd"));
- }
- if (model.getValue(sDescNode+"["+iRowNo+"]/delyresncd") == "" || model.getValue(sDescNode+"["+iRowNo+"]/delyresncd") == "-") {
- // Continue
- } else {
- model.setValue(sDescNode+"["+iRowNo+"]/delyresnnm", model.getValue("/root/init/resncd/resncdlist[resncd='"+model.getValue(sDescNode+"["+iRowNo+"]/delyresncd")+"']/resncnts"));
- }
-
- //----------------
- // 수술방정보 설정
- model.makeValue(sDescNode + "[" + iRowNo + "]/oprsrvno", model.getValue(sSrcNode + "[" + pRowNo + "]/oprsrvno"));
- model.makeValue(sDescNode + "[" + iRowNo + "]/oproomcd", model.getValue(sSrcNode + "[" + pRowNo + "]/oproomcd"));
- model.makeValue(sDescNode + "[" + iRowNo + "]/oproomnm", model.getValue(sSrcNode + "[" + pRowNo + "]/oproomnm"));
- model.makeValue(sDescNode + "[" + iRowNo + "]/pid", model.getValue(sSrcNode + "[" + pRowNo + "]/pid"));
- model.makeValue(sDescNode + "[" + iRowNo + "]/patnm", model.getValue(sSrcNode + "[" + pRowNo + "]/patnm"));
- if(pInptFlag == "fslist"){
- model.makeValue(sDescNode + "[" + iRowNo + "]/choi", "true");
- }
- }
-
- //--------------------------------------------------
- // 수술방코드가 없는경우 메세지 전송불가 경고창 표시
- if(pInptFlag == "inptrslt") {
-
- //정도관리 입력여부 조회.
- fGetEtcRsltCnt();
-
- //TAT계산
- fexeTAT();
-
- if (model.getValue(sSrcNode+"["+pRowNo+"]/oproomcd") == "" || model.getValue(sSrcNode+"["+pRowNo+"]/oproomcd") == "-") {
- if (pBizFlagCd == "0") {
-
- messageBox("수술방이 없습니다! 저장할 경우 메세지를 전송", "E001");
- }
- }
- }
- }
-
- /* @group : 동결절편결과등록
- * @ver : 2007.06.04 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 동절절편 결과저장 함수
- */
- function fExeFrznRsltSave(pInptFlag) {
-
- var sSrcNode = "/root/main/frzncste/frzncstelist";
- var sUserNode = "/root/init/userinfo/userinfolist";
- var iCheck = 0;
-
- //--------------------------------
- model.removeNodeset("/root/send");
-
- if(sInptFlag == "fslist") {
- iCheck = grd_frzncstelist.findRow("true", 0, grd_frzncstelist.colRef("choi"), true, true);
- grd_frzncstelist.clearStatus();
- } else {
-
- iCheck = grd_rsltinpt.findRow("true", 0, grd_rsltinpt.colRef("choi"), true, true);
- grd_rsltinpt.clearStatus();
- }
-
- if(iCheck <= 0) {
- messageBox("저장 할 세부 목록을 선택하여 주세요", "I999");
- return false;
- }
-
- //-------------------------
- // 판독의사의 입력여부 검사
- for (var iRowNo=1; iRowNo <= getNodesetCount(sSrcNode); iRowNo++)
- {
- if(pInptFlag == "inptrslt") { //판독의사는 결과입력일 경우만 체크 한다.
- if(model.getValue(sSrcNode+"["+iRowNo+"]/choi") == "true") {
-
- model.makeValue(sSrcNode+"["+iRowNo+"]/inptflagcd", sInptFlag);
-
- // 결과가 있다면 판독의사1은 무조건 입력되어야 한다.
- if ( ((model.getValue(sSrcNode+"["+iRowNo+"]/readrslt")).length > 1 )
- && (model.getValue(sSrcNode+"["+iRowNo+"]/readdrid1") == ""
- || model.getValue(sSrcNode+"["+iRowNo+"]/readdrid1") == "-"))
- {
- messageBox("판독의사1은 ", "I003");
- return false;
- }
-
- //-----------------------------------------------------------
- // 판독시간이 입력된 경우 판고의사1은 반드시 입력되어야 한다.
- if (model.getValue(sSrcNode+"["+iRowNo+"]/readtm") == ""
- || model.getValue(sSrcNode+"["+iRowNo+"]/readtm") == "-")
- {
- if (model.getValue(sSrcNode+"["+iRowNo+"]/readdrid1") == ""
- || model.getValue(sSrcNode+"["+iRowNo+"]/readdrid1") == "-")
- {
- grd_rsltinpt.removeStatus(iRowNo, "insert");
- }
- else
- {
- model.makeValue(sSrcNode+"["+iRowNo+"]/readtm", getCurrentTime());
- grd_rsltinpt.addStatus(iRowNo, "insert");
- }
- }
- else
- {
- if (model.getValue(sSrcNode+"["+iRowNo+"]/readdrid1") == ""
- || model.getValue(sSrcNode+"["+iRowNo+"]/readdrid1") == "-")
- {
- messageBox("판독의사1은 ", "I003");
- return false;
- }
- else
- {
- grd_rsltinpt.addStatus(iRowNo, "insert");
- }
- }
-
- //-----------------------------------------------------------------------------------------------------------------------------------------------------
- model.setValue(sSrcNode+"["+iRowNo+"]/readdrnm1", model.getValue(sUserNode+"[userid='"+model.getValue(sSrcNode+"["+iRowNo+"]/readdrid1")+"']/usernm"));
- model.setValue(sSrcNode+"["+iRowNo+"]/readdrnm2", model.getValue(sUserNode+"[userid='"+model.getValue(sSrcNode+"["+iRowNo+"]/readdrid2")+"']/usernm"));
- }
- } else {
- //FS list 저장
- if(model.getValue(sSrcNode+"["+iRowNo+"]/choi") == "true") {
- model.makeValue(sSrcNode+"["+iRowNo+"]/inptflagcd", sInptFlag);
- grd_frzncstelist.addStatus(iRowNo, "insert");
- }
- }
-
- if(model.getValue(sSrcNode+"["+iRowNo+"]/grostm") != "" && model.getValue(sSrcNode+"["+iRowNo+"]/grostm") != "-") {
- model.makeValue(sSrcNode+"["+iRowNo+"]/grostm", model.getValue(sSrcNode+"["+iRowNo+"]/grosdd") + model.getValue(sSrcNode+"["+iRowNo+"]/grostm"));
- } else {
- model.makeValue(sSrcNode+"["+iRowNo+"]/grostm", "");
- }
-
- if(model.getValue(sSrcNode+"["+iRowNo+"]/cryostattm") != "" && model.getValue(sSrcNode+"["+iRowNo+"]/cryostattm") != "-") {
- model.makeValue(sSrcNode+"["+iRowNo+"]/cryostattm", model.getValue(sSrcNode+"["+iRowNo+"]/cryostatdd") + model.getValue(sSrcNode+"["+iRowNo+"]/cryostattm"));
- } else {
- model.makeValue(sSrcNode+"["+iRowNo+"]/cryostattm", "");
- }
- }
-
- if(pInptFlag == "fslist") {
- model.makeValue("/root/send/frznrslt", grd_frzncstelist.getUpdateData("insert"));
- } else {
- model.makeValue("/root/send/frznrslt", grd_rsltinpt.getUpdateData("insert"));
- }
-
- //-----------
- setAlertOn();
- if (submit("TXLPR00701")) {
- if(pInptFlag == "inptrslt") {
- fExePtNoGridClick(grd_frznlist.row, "1", sInptFlag);
-
- if (model.getValue("/root/main/etcrslt/etcrsltcnt[bizflagcd='G']/rsltcnt") == "0") {
- if(messageBox("정도관리가 등록되지 않았습니다. ", "Q014") == "6") {
- fExeScopManage();
- fGetEtcRsltCnt();
- }
- }
-
- } else {
- fExePtNoGridClick(grd_frznptnolist.row, "1", sInptFlag);
- }
- }
- }
-
- /* @group : 동결절편결과등록
- * @ver : 2007.12.14 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 등록번호 조회값 ㅣ입력처리 함수
- */
- function fExeRefValKeyPressRslt() {
-
- if(event.keyCode == 13) {
- model.setValue("/root/init/refval", input3.currentText);
- input3.refresh();
-
- //-----------------
- fGetFrznPtNolist();
- }
- }
-
- /* @group : 동결절편결과등록
- * @ver : 2007.12.14 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 등록번호 조회값 ㅣ입력처리 함수
- */
- function fExeRefValKeyPressFslist() {
-
- if(event.keyCode == 13) {
- model.setValue("/root/init/refval", ipt_seaval.currentText);
- ipt_seaval.refresh();
-
- //-----------------
- fGetFrznPtNolist();
- }
- }
-
- /* @group : 동결절편결과등록
- * @ver : 2007.12.14 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 등록번호 조회값 ㅣ입력처리 함수
- */
- function fExeRefValKeyPress() {
-
- if(event.keyCode == 13) {
- model.setValue("/root/init/refval", input10.currentText);
- input10.refresh();
-
- //-----------------
- fGetFrznPtNolist();
- }
- }
-
- /* @group : 동결절편결과등록
- * @ver : 2008.03.03 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 지연사유 선택 처리 함수
- */
- function fExeDelyClick() {
-
- var iNo = grd_rsltinpt.row;
-
- //-------------------------------
- if (grd_rsltinpt.col == grd_rsltinpt.colRef("delyresncd")) {
- if (model.getValue("/root/main/frzncste/frzncstelist["+iNo+"]/delyresncd") == "" ||
- model.getValue("/root/main/frzncste/frzncstelist["+iNo+"]/delyresncd") == "-") {
- model.setValue("/root/main/frzncste/frzncstelist["+iNo+"]/delyresnnm", "");
- } else {
- model.setValue("/root/main/frzncste/frzncstelist["+iNo+"]/delyresnnm", model.getValue("/root/init/resncd/resncdlist[resncd='"+model.getValue("/root/main/frzncste/frzncstelist["+iNo+"]/delyresncd")+"']/resncnts"));
- }
- }
- }
-
- /* @group : 동결절편결과등록
- * @ver : 2008.03.03 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 그리드 클릭 처리 함수
- */
- function fExeFrznGridClick(pRow, pCol) {
- //--------------------------------------------------------------------------------------------
- if (pRow > 0 && grd_frzncstelist.isCell(event.target) && pRow >= grd_frzncstelist.fixedRows) {
- fExeFrznGridChoi(pRow, pCol);
- }
- }
-
- /* @group : 동결절편결과등록
- * @ver : 2008.03.03 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 그리드 선택 처리 함수
- */
- function fExeFrznGridChoi(pRow, pCol) {
-
- var sNode = "/root/main/frzncste/frzncstelist";
- var sKeepFlagCd = model.getValue(sNode+"["+pRow+"]/keepflagcd");
- var sInstCd = model.getValue(sNode+"["+pRow+"]/instcd");
- var sPtNo = model.getValue(sNode+"["+pRow+"]/ptno");
- var sSpcAcptDD = model.getValue(sNode+"["+pRow+"]/spcacptdd");
- var sSpcAcptNo = model.getValue(sNode+"["+pRow+"]/spcacptno");
- var sSpcAcptSeqNo = model.getValue(sNode+"["+pRow+"]/spcacptseqno");
-
- //-------------------------------
- // 보관 컬럼이 선택된 경우만 처리
- if (pCol == grd_frzncstelist.colRef("keepflagcd"))
- {
- for (var iNo=1; iNo <= getNodesetCount(sNode); iNo++)
- {
- if (iNo != pRow)
- {
- if (sInstCd == model.getValue(sNode+"["+iNo+"]/instcd")) // 기관코드 비교
- {
- if (sPtNo == model.getValue(sNode+"["+iNo+"]/ptno")) // 병리번호 비교
- {
- if (sSpcAcptDD == model.getValue(sNode+"["+iNo+"]/spcacptdd")) // 검체접수일자 비교
- {
- if (sSpcAcptNo == model.getValue(sNode+"["+iNo+"]/spcacptno")) // 검체접수번호 비교
- {
- if (sSpcAcptSeqNo == model.getValue(sNode+"["+iNo+"]/spcacptseqno")) // 검체접수일련번호 비교
- {
- model.setValue(sNode+"["+iNo+"]/keepflagcd", sKeepFlagCd);
-
- if (sKeepFlagCd == "true")
- {
- //------------------------------------------------
- // 2008-08-26 : 간호팀(수술방) 요청으로 "Y"로 변경
- // model.setValue(sNode+"["+iNo+"]/cmtcnts", "검체보관중", true);
- model.setValue(sNode+"["+iNo+"]/cmtcnts", "Y", true);
- } else
- {
- model.setValue(sNode+"["+iNo+"]/cmtcnts", "", true);
- }
- }
- }
- }
- }
- }
- }
- else
- {
- //--------------------------
- if (sKeepFlagCd == "true")
- {
- model.setValue(sNode+"["+iNo+"]/cmtcnts", "검체보관중", true);
- }
- else
- {
- model.setValue(sNode+"["+iNo+"]/cmtcnts", "", true);
- }
- }
- }
- }
-
- //-------------------------
- grd_frzncstelist.refresh();
- }
-
- /* @group : 동결절편결과등록
- * @ver : 2008.11.21 (CMCDEV-0001)
- * @by : 하만석(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 그리드의 결과 더블클릭 처리 함수
- */
- function fExeCntsView()
- {
- if(model.getValue("/root/main/frzncste/frzncstelist[" + iMousRow + "]/readrslt") == "-") {
- model.makeValue("/root/hidden/rsltcont", "");
- } else {
- model.makeValue("/root/hidden/rsltcont"
- , model.getValue("/root/main/frzncste/frzncstelist[" + iMousRow + "]/readrslt"));
- }
-
- tar_rsltcnts.refresh();
- grp_rsltcnts.visible = true;
- model.setFocus("tar_rsltcnts");
- }
-
- /* @group : 동결절편결과등록
- * @ver : 2008.11.21 (CMCDEV-0001)
- * @by : 하만석(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 결과 등록 후 처리 함수
- */
- function fExeCloseCntsView()
- {
- model.makeValue("/root/main/frzncste/frzncstelist[" + iMousRow + "]/readrslt", tar_rsltcnts.currentText);
-
- // 그리드 Attribute 항목에 설정이 되어있어도 자동 조절 안되서
- grd_frzncstelist.autoResize = true;
-
- grd_frzncstelist.refresh();
- grp_rsltcnts.visible = false;
- }
-
- /* @group : 검사결과등록
- * @ver : 2008.11.21 (CMCDEV-0001)
- * @by : 하만석(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 결과예문 팝업 호출 처리 Function
- */
- function fExeExmpCall()
- {
- // 예문 조회할 의사 ID 설정
- setParameter("SPLPR01600_rgstdrid", getUserId());
-
- //modal("SPLPR01600", "", "", "", "SPLPR01600", "", "");
- modal("SPLPR01600");
-
- if (getParameter( "SPLPR01600_exmpcnts") != "")
- {
-
- if (iCheck == "1" )
- {
- // 확장 텍스트 입력 창에서 결과예문 조회 시
- model.makeValue("root/hidden/rsltcont", getParameter( "SPLPR01600_exmpcnts"));
- tar_rsltcnts.refresh();
- }
- else if ( iCheck == "0" )
- {
- // 목록 그리드에서 결과예문 조회 시
- model.makeValue("/root/main/frzncste/frzncstelist[" + iMousRow + "]/readrslt"
- , getParameter( "SPLPR01600_exmpcnts"));
-
- // 그리드 Attribute 항목에 설정이 되어있어도 자동 조절 안되서
- grd_frzncstelist.autoResize = true;
- grd_frzncstelist.refresh();
- }
-
- }
-
- iCheck = "0";
- }
-
- /* @group : 검사결과등록
- * @ver : 2008.11.21 (CMCDEV-0001)
- * @by : 하만석(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 진단결과 팝업 호출 처리 Function
- */
- function fGetMouseDown()
- {
- model.removeNodeset("/root/hidden/gridinfo");
-
- initPopupMenu(); // 팝업 메뉴 선택시 초기화
- if(event.button == 3 && iMousCol == 17 ) // 마우스 우클릭 메뉴
- {
- //model.makeValue("/root/hidden/gridinfo/rowno", iMousCol);
- setPopupMenu("grd_frzncstelist", false, "/root/hidden/popupmenu/grid/item", "name", "func");
- }
- }
-
- /* @group : 검사결과등록
- * @ver : 2008.11.21 (CMCDEV-0001)
- * @by : 하만석(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 시간 set Function
- */
- function fExeHeaderChoi(pBizFlagCd) {
-
- var sSrcNode = "/root/main/frzncste/frzncstelist";
- var sDate = getCurrentDate();
- var sTime = getCurrentTime();
- //--------------
- // 전체선택 처리
- if (grd_frzncstelist.row == 0 && grd_frzncstelist.col == grd_frzncstelist.colRef("choi2")) {
-
- //--------------------------------------------------------
- for (var iNo=1; iNo <= getNodesetCount(sSrcNode); iNo++) {
-
- //--------------------------------------------------------
- if (model.getValue(sSrcNode+"["+iNo+"]/choi2") == "true") {
- model.makeValue(sSrcNode+"["+iNo+"]/grostm", sTime);
- } else {
- model.makeValue(sSrcNode+"["+iNo+"]/grostm", model.getValue(sSrcNode+"["+iNo+"]/orggrostm"));
- }
- }
- } else if(grd_frzncstelist.col == grd_frzncstelist.colRef("choi2")){
-
- //--------------------------------------------------------
- if (model.getValue(sSrcNode+"["+grd_frzncstelist.row+"]/choi2") == "true") {
- model.makeValue(sSrcNode+"["+grd_frzncstelist.row+"]/grostm", sTime);
- } else {
- model.makeValue(sSrcNode+"["+grd_frzncstelist.row+"]/grostm", model.getValue(sSrcNode+"["+grd_frzncstelist.row+"]/orggrostm"));
- }
- }
-
- //--------------
- // 전체선택 처리
- if (grd_frzncstelist.row == 0 && grd_frzncstelist.col == grd_frzncstelist.colRef("choi3")) {
-
- //--------------------------------------------------------
- for (var iNo=1; iNo <= getNodesetCount(sSrcNode); iNo++) {
-
- //--------------------------------------------------------
- if (model.getValue(sSrcNode+"["+iNo+"]/choi3") == "true") {
-
- model.makeValue(sSrcNode+"["+iNo+"]/cryostattm", sTime);
-
- } else {
- model.makeValue(sSrcNode+"["+iNo+"]/cryostattm", model.getValue(sSrcNode+"["+iNo+"]/orgcryostattm"));
- }
- }
- } else if(grd_frzncstelist.col == grd_frzncstelist.colRef("choi3")){
-
- //--------------------------------------------------------
- if (model.getValue(sSrcNode+"["+grd_frzncstelist.row+"]/choi3") == "true") {
- model.makeValue(sSrcNode+"["+grd_frzncstelist.row+"]/cryostattm", sTime);
- } else {
- model.makeValue(sSrcNode+"["+grd_frzncstelist.row+"]/cryostattm", model.getValue(sSrcNode+"["+grd_frzncstelist.row+"]/orgcryostattm"));
- }
- }
-
- //--------------
- // 전체선택 처리
- if (grd_frzncstelist.row == 0 && grd_frzncstelist.col == grd_frzncstelist.colRef("choi4")) {
-
- //--------------------------------------------------------
- for (var iNo=1; iNo <= getNodesetCount(sSrcNode); iNo++) {
-
- //--------------------------------------------------------
- if (model.getValue(sSrcNode+"["+iNo+"]/choi4") == "true") {
- model.makeValue(sSrcNode+"["+iNo+"]/intm", sTime);
- } else {
- model.makeValue(sSrcNode+"["+iNo+"]/intm", model.getValue(sSrcNode+"["+iNo+"]/orgintm"));
- }
- }
- } else if(grd_frzncstelist.col == grd_frzncstelist.colRef("choi4")){
-
- //--------------------------------------------------------
- if (model.getValue(sSrcNode+"["+grd_frzncstelist.row+"]/choi") == "true") {
- model.makeValue(sSrcNode+"["+grd_frzncstelist.row+"]/intm", sTime);
- } else {
- model.makeValue(sSrcNode+"["+grd_frzncstelist.row+"]/intm", model.getValue(sSrcNode+"["+grd_frzncstelist.row+"]/orgintm"));
- }
- }
-
- //-------------------------
- grd_frzncstelist.refresh();
- }
-
- /* @group : 검사결과등록
- * @ver : 2008.11.21 (CMCDEV-0001)
- * @by : 하만석(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 시간 set Function
- */
- function fExeHeaderChoi2(pBizFlagCd) {
-
- var sSrcNode = "/root/main/frzncste/frzncstelist";
- var sDate = getCurrentDate();
- var sTime = getCurrentTime();
-
- //--------------
- // 전체선택 처리
- if (grd_rsltinpt.row == 0 && grd_rsltinpt.col == grd_rsltinpt.colRef("choi")) {
-
- //--------------------------------------------------------
- for (var iNo=1; iNo <= getNodesetCount(sSrcNode); iNo++) {
-
- //--------------------------------------------------------
- if (model.getValue(sSrcNode+"["+iNo+"]/choi") == "true") {
- model.makeValue(sSrcNode+"["+iNo+"]/readtm", sTime);
-
- //판독의사는 입력이 되어 있지 않을 경우만 set 한다.
- if(model.getValue(sSrcNode+"["+iNo+"]/readdrid1") == "" || model.getValue(sSrcNode+"["+iNo+"]/readdrid1") == "-") {
- if((model.getValue("/root/init/userinfo/userinfolist[jobkindcd=1 and userid="+ getUserId() +"]/usernm")) == "") {
- model.makeValue(sSrcNode+"["+iNo+"]/readdrid1", model.getValue(sSrcNode+"["+iNo+"]/orgreaddrid1"));
- } else {
- model.makeValue(sSrcNode+"["+iNo+"]/readdrid1", getUserId());
- }
- }
-
- } else {
- model.makeValue(sSrcNode+"["+iNo+"]/readtm", model.getValue(sSrcNode+"["+iNo+"]/orgreadtm"));
- model.makeValue(sSrcNode+"["+iNo+"]/readdrid1", model.getValue(sSrcNode+"["+iNo+"]/orgreaddrid1"));
- }
- }
- } else if(grd_rsltinpt.col == grd_rsltinpt.colRef("choi")){
-
- //--------------------------------------------------------
- if (model.getValue(sSrcNode+"["+grd_rsltinpt.row+"]/choi") == "true") {
- //판독시간은 입력이 되어 있지 않은 경우 에만 Set 한다.
- if(model.getValue(sSrcNode+"["+grd_rsltinpt.row+"]/readtm") == "" || model.getValue(sSrcNode+"["+grd_rsltinpt.row+"]/readtm") == "-") {
- model.makeValue(sSrcNode+"["+grd_rsltinpt.row+"]/readtm", sTime);
- }
-
- //판독의사는 입력이 되어 있지 않을 경우만 set 한다.
- if(model.getValue(sSrcNode+"["+grd_rsltinpt.row+"]/readdrid1") == "" || model.getValue(sSrcNode+"["+grd_rsltinpt.row+"]/readdrid1") == "-") {
- if((model.getValue("/root/init/userinfo/userinfolist[jobkindcd=1 and userid="+ getUserId() +"]/usernm")) == "") {
- model.makeValue(sSrcNode+"["+grd_rsltinpt.row+"]/readdrid1", model.getValue(sSrcNode+"["+grd_rsltinpt.row+"]/orgreaddrid1"));
- } else {
- model.makeValue(sSrcNode+"["+grd_rsltinpt.row+"]/readdrid1", getUserId());
- }
- }
-
- } else {
- model.makeValue(sSrcNode+"["+grd_rsltinpt.row+"]/readtm", model.getValue(sSrcNode+"["+grd_rsltinpt.row+"]/orgreadtm"));
- model.makeValue(sSrcNode+"["+grd_rsltinpt.row+"]/readdrid1", model.getValue(sSrcNode+"["+grd_rsltinpt.row+"]/orgreaddrid1"));
- }
- }
-
- //-------------------------
- grd_frzncstelist.refresh();
- }
-
- /* @group : 검사결과등록
- * @ver : 2008.11.21 (CMCDEV-0001)
- * @by : 하만석(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 시간 set Function
- */
- function fChangeDT(pFlag) {
-
- for (var iNo=1; iNo <= getNodesetCount("/root/main/frzncste/frzncstelist"); iNo++) {
-
- if(model.getValue("/root/main/frzncste/frzncstelist["+ iNo+"]/choi") == "true") {
-
- if(pFlag == "GROS") {
- model.setValue("/root/main/frzncste/frzncstelist["+ iNo+"]/grostm", model.getValue("/root/hidden/grostm"));
- } else if(pFlag == "CRYO"){
- model.setValue("/root/main/frzncste/frzncstelist["+ iNo+"]/cryostattm", model.getValue("/root/hidden/croystattm"));
- } else if(pFlag == "SLID"){
- model.setValue("/root/main/frzncste/frzncstelist["+ iNo+"]/intm", model.getValue("/root/hidden/slidetm"));
- } else if(pFlag == "READ"){
- model.setValue("/root/main/frzncste/frzncstelist["+ iNo+"]/readtm", model.getValue("/root/hidden/readtm"));
- }
-
- }
- }
- grd_frzncstelist.refresh();
- grd_rsltinpt.refresh();
- }
-
- /* @group : 검사결과등록
- * @ver : 2008.11.21 (CMCDEV-0001)
- * @by : 하만석(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : TAT 계산
- */
- function fexeTAT() {
- var sReadTm = "";
- var sAcptTm = "";
- var sSrcNode = "/root/main/frzncste/frzncstelist";
- var sTat = "";
-
- //--------------------------------------------------------
- for (var iNo=1; iNo <= getNodesetCount(sSrcNode); iNo++) {
-
- //--------------------------------------------------------
- if (model.getValue(sSrcNode+"["+iNo+"]/acpttm") != "" && model.getValue(sSrcNode+"["+iNo+"]/acpttm") != "-"
- && model.getValue(sSrcNode+"["+iNo+"]/readtm") != "" && model.getValue(sSrcNode+"["+iNo+"]/readtm") != "-") {
- sReadTm = model.getValue(sSrcNode+"["+iNo+"]/readtm");
- sAcptTm = model.getValue(sSrcNode+"["+iNo+"]/acpttm");
-
- sTat = (getTimeInterval(sAcptTm, sReadTm))/60;
-
- //if( sTat >= 0) {
- model.makeValue(sSrcNode+"["+iNo+"]/tat", sTat);
- //} else {
- // model.makeValue(sSrcNode+"["+iNo+"]/tat", "-");
- //}
-
- } else {
- model.makeValue(sSrcNode+"["+iNo+"]/tat", "-");
- }
- }
- grd_rsltinpt.refresh();
- }
-
- /* @group : 검사결과등록
- * @ver : 2008.11.21 (CMCDEV-0001)
- * @by : 하만석(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 정도관리 팝업
- */
- function fExeScopManage()
- {
- model.property("SMLPR00100_scopmanag") = "Search"; // 정도관 데이터 시작 점
-
- setParameter("SMLPR00100_scop_wrkcd", "1002");
- setParameter("SMLPR00100_scop_ptno", model.getValue("/root/main/frznptno/frznptnolist["+grd_frznlist.row+"]/ptno"));
- setParameter("SMLPR00100_scop_acptdd", model.getValue("/root/main/frznptno/frznptnolist["+grd_frznlist.row+"]/orgacptdd"));
-
- modal("SMLPB00600");
- }
-
- /* @group : 검사결과등록
- * @ver : 2008.11.21 (CMCDEV-0001)
- * @by : 하만석(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 정도관리 버튼 색 변경
- */
- function fGetEtcRsltCnt() {
-
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/ptno", model.getValue("/root/main/frznptno/frznptnolist["+grd_frznlist.row+"]/ptno"));
- submit("TRLPR00103");
-
- //-------------------
- // 정도관리 버튼 변경
- if (model.getValue("/root/main/etcrslt/etcrsltcnt[bizflagcd='G']/rsltcnt") == "0") {
- button2.attribute("border-color") = "";
- button2.attribute("border-width") = "";
- button2.attribute("border-style") = "none";
- } else {
- button2.attribute("border-color") = "#ff0000";
- button2.attribute("border-width") = "2px";
- button2.attribute("border-style") = "dotted";
- }
-
- button2.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:15px; ">동결절편 결과등록</caption>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
- <line id="line10" class="line_6" style="x1:270px; y1:25; x2:1194px; y2:25; "/>
- <button id="btn_frznsave" class="btn4_letter2" navindex="27" style="left:1138px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeFrznRsltSave(sInptFlag);
- ]]>
- </script>
- </button>
- <button id="button2" class="btn3_letter4" style="left:1055px; top:3px; width:80px; height:22px; ">
- <caption>정도관리</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 병리번호 조회가 되어있을 경우만
- if (grd_frznlist.row > 0 && sInptFlag == "inptrslt")
- {
- fExeScopManage();
- fGetEtcRsltCnt();
- }
- ]]>
- </script>
- </button>
- </group>
- <button id="btn_fslist" class="btn_sw" group="tab" selected="true" style="left:90px; top:18px; width:90px; height:22px; ">
- <caption>FS list</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- btn_fslist.selected = true;
- button2.visible = false;
- btn_frznsave.disabled = false;
- model.toggle("case1");
- sInptFlag = "fslist";
- model.removeNodeset("/root/main/frzncste/frzncstelist");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_inptrslt" class="btn_sw" group="tab" selected="true" style="left:0px; top:18px; width:90px; height:22px; ">
- <caption>결과입력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- btn_inptrslt.selected = true;
- button2.visible = true;
- btn_frznsave.disabled = false;
- model.toggle("case2");
- sInptFlag = "inptrslt";
- model.removeNodeset("/root/main/frzncste/frzncstelist");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_tat" class="btn_sw" group="tab" selected="true" style="left:180px; top:18px; width:90px; height:22px; ">
- <caption>TAT 조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- btn_tat.selected = true;
- button2.visible = false;
- btn_frznsave.disabled = true;
- model.toggle("case3");
- sInptFlag = "tat";
- ]]>
- </script>
- </button>
- <switch id="switch1" style="left:0px; top:40px; width:1195px; height:744px; ">
- <case id="case1" selected="true">
- <group id="grp_biz" style="left:0px; top:0px; width:1193px; height:740px; ">
- <caption id="caption1" class="tit_2" style="left:6px; top:45px; width:126px; height:13px; ">동결절편 접수목록</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:60px; x2:430px; y2:60px; "/>
- <datagrid id="grd_frznptnolist" nodeset="/root/main/frznptno/frznptnolist" class="datagrid2" caption="기관코드^ptno^병리번호^환자명^성별
나이^등록번호^진료과^주치의^수술방^접수일자^접수시간^수술번호^orgacptdd^oproomcd" colsep="^" colwidth="0, 0, 80, 60, 43, 70, 50, 60, 50, 70, 60, 80, 100, 0" mergecellsfixedrows="bycolrec" rowsep="|" navindex="10" style="left:0px; top:65px; width:430px; height:675px; border-color:#c0c0c0; border-style:solid; ">
- <col ref="instcd"/>
- <col ref="ptno"/>
- <col class="text_center" ref="dispptno"/>
- <col class="text_center" ref="patnm"/>
- <col class="text_center" ref="agesex"/>
- <col class="text_center" ref="pid"/>
- <col class="text_center" ref="deptnm"/>
- <col class="text_center" ref="orddrnm"/>
- <col ref="oproomnm"/>
- <col class="text_center" ref="acptdd" format="yyyy-mm-dd" mask="exclude" showmask="true"/>
- <col class="text_center" ref="acpttm" format="99:99:99" mask="exclude" showmask="true"/>
- <col ref="oprsrvno"/>
- <col ref="orgacptdd" visibility="hidden"/>
- <col ref="oproomcd"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fExePtNoGridClick(grd_frznptnolist.row, "0", sInptFlag);
- ]]>
- </script>
- </datagrid>
- <caption id="caption4" class="tit_2" style="left:439px; top:45px; width:157px; height:13px; ">세부 목록</caption>
- <line id="line2" class="line_1" style="x1:435px; y1:60px; x2:1193px; y2:60px; "/>
- <group id="grp_sea" style="left:0px; top:0px; width:1193px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; 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; "/>
- <caption id="caption2" class="search_name" style="left:804px; top:9px; width:86px; height:17px; ">접수일자 :</caption>
- <input id="ipt_seaval" ref="/root/init/refval" class="input_search" navindex="-1" style="left:635px; top:8px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fExeRefValKeyPressFslist();
- ]]>
- </script>
- </input>
- <caption id="caption3" class="search_name" style="left:544px; top:9px; width:91px; height:17px; ">등록번호 :</caption>
- <caption id="caption5" class="search_no_b" style="left:989px; top:8px; width:12px; height:17px; ">~</caption>
- <input id="ipt_acpttodd" ref="/root/init/acpttodd" class="input_search" navindex="8" inputtype="date" style="left:1004px; top:8px; width:90px; height:19px; "/>
- <input id="ipt_acptfromdd" ref="/root/init/acptfromdd" class="input_search" navindex="7" inputtype="date" style="left:896px; top:8px; width:90px; height:19px; "/>
- <button id="btn_sea" class="btn1_letter2" navindex="9" 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[
- fGetFrznPtNolist();
- ]]>
- </script>
- </button>
- <select1 id="cbo_ptnocd" ref="/root/init/ptnocode" navindex="0" appearance="minimal" editmode="search" style="left:109px; top:8px; width:186px; 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="4" maxlength="6" style="left:328px; top:8px; width:50px; height:19px; "/>
- <caption id="caption7" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">병리번호 :</caption>
- <caption id="caption8" class="search_no_b" style="left:381px; top:8px; width:12px; height:17px; ">~</caption>
- <input id="input1" ref="/root/init/toptno" class="text_center" navindex="6" maxlength="6" style="left:426px; top:8px; width:50px; height:19px; "/>
- <input id="input2" ref="/root/init/toyear" class="text_center" navindex="5" maxlength="2" style="left:396px; top:8px; width:27px; height:19px; "/>
- <input id="ipt_fromyear" ref="/root/init/fromyear" class="text_center" navindex="3" maxlength="2" style="left:298px; top:8px; width:27px; height:19px; "/>
- </group>
- <datagrid id="grd_frzncstelist" nodeset="/root/main/frzncste/frzncstelist" class="datagrid2" autoresize="true" caption="instcd^ptno^dispptno^spcacptdd^spcacptno^검체코드^^검체
번호^검체명^Cassette
번호^Cassette
내용^채취시간^수신시간^접수일자^접수시간^^Gross
시간^^Cryostat
도착시간^입고일자^^Slide
제작시간^inptflagcd^grosdd^cryostatdd^orgintm^orggrostm^orgcryostattm^판독일자^판독의명1^판독의명2^판독의명3^판독의사3^delyflagcd^Comment^oprsrvno^oproomcd^oproomnm^pid^patnm^지연사유명" colsep="^" colwidth="0, 0, 0, 0, 0, 0, 28, 40, 110, 0, 105, 60, 60, 0, 60, 29, 75, 30, 75, 100, 30, 75, 100, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" dataheight="25" forecolorfrozen="#339966" frozencols="6" mergecellsfixedrows="bycolrec" rowheight="32" rowsep="|" navindex="11" style="left:435px; top:65px; width:758px; height:675px; border-color:#c0c0c0; border-style:solid; ">
- <col ref="instcd"/>
- <col ref="ptno"/>
- <col ref="dispptno"/>
- <col ref="spcacptdd"/>
- <col ref="spcacptno">
- <![CDATA[ㄱ]]>
- </col>
- <col ref="spccd"/>
- <col checkvalue="true,false" ref="choi" type="checkbox" visibility="hidden"/>
- <col ref="spcacptseqno"/>
- <col ref="spcnm"/>
- <col ref="csteno"/>
- <col ref="cstecnts"/>
- <col ref="extrtm" format="99:99:99" style="text-align:center; "/>
- <col ref="cnfmtm" format="99:99:99" style="text-align:center; "/>
- <col ref="acptdd" type="inputdate"/>
- <col ref="acpttm" format="99:99:99" style="text-align:center; "/>
- <col checkvalue="true,false" ref="choi2" type="checkbox"/>
- <col ref="grostm" type="input" format="99:99:99" mask="exclude" showmask="true" style="text-align:center; "/>
- <col checkvalue="true,false" ref="choi3" type="checkbox"/>
- <col ref="cryostattm" type="input" format="99:99:99" mask="exclude" showmask="true" style="text-align:center; "/>
- <col ref="indd" visibility="hidden"/>
- <col checkvalue="true,false" ref="choi4" type="checkbox"/>
- <col ref="intm" type="input" format="99:99:99" mask="exclude" showmask="true" style="text-align:center; "/>
- <col ref="inptflagcd" visibility="hidden"/>
- <col ref="grosdd" visibility="hidden"/>
- <col ref="cryostatdd" visibility="hidden"/>
- <col ref="orgintm" visibility="hidden"/>
- <col ref="orggrostm" visibility="hidden"/>
- <col ref="orgcryostattm" visibility="hidden"/>
- <col ref="readdd" type="inputdate"/>
- <col ref="readdrnm1"/>
- <col ref="readdrnm2"/>
- <col ref="readdrnm3"/>
- <col ref="readdrid3" type="combo">
- <choices>
- <itemset nodeset="/root/init/deptuserlist/deptuserlisttbl[occukind='Y']">
- <label ref="username2"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- </col>
- <col ref="delyflagcd"/>
- <col ref="cmtcnts" type="input"/>
- <col ref="oprsrvno"/>
- <col ref="oproomcd"/>
- <col ref="oproomnm"/>
- <col ref="pid"/>
- <col ref="patnm"/>
- <col ref="delyresnnm"/>
- <script type="javascript" ev:event="xforms-deselect">
- <![CDATA[
- fExeHeaderChoi("D");
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fExeHeaderChoi("S");
- ]]>
- </script>
- </datagrid>
- <input id="input17" ref="/root/hidden/grostm" navindex="12" format="hh:nn:ss" showmask="true" style="left:901px; top:40px; width:72px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fChangeDT("GROS");
- ]]>
- </script>
- </input>
- <input id="input18" ref="/root/hidden/croystattm" navindex="13" format="hh:nn:ss" showmask="true" style="left:1006px; top:40px; width:72px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fChangeDT("CRYO");
- ]]>
- </script>
- </input>
- <input id="input19" ref="/root/hidden/slidetm" navindex="14" format="hh:nn:ss" showmask="true" style="left:1111px; top:40px; width:72px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fChangeDT("SLID");
- ]]>
- </script>
- </input>
- </group>
- </case>
- <case id="case2">
- <group id="group1" style="left:0px; top:0px; width:1193px; height:740px; ">
- <group id="group2" style="left:0px; top:0px; width:1193px; height:35px; vertical-align:top; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line6" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption11" class="search_name" style="left:804px; top:9px; width:86px; height:17px; ">접수일자 :</caption>
- <input id="input3" ref="/root/init/refval" class="input_search" navindex="20" style="left:635px; top:8px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fExeRefValKeyPressRslt();
- ]]>
- </script>
- </input>
- <caption id="caption12" class="search_name" style="left:544px; top:9px; width:91px; height:17px; ">등록번호 :</caption>
- <caption id="caption13" class="search_no_b" style="left:989px; top:8px; width:12px; height:17px; ">~</caption>
- <input id="input4" ref="/root/init/acpttodd" class="input_search" navindex="22" inputtype="date" style="left:1004px; top:8px; width:90px; height:19px; "/>
- <input id="input5" ref="/root/init/acptfromdd" class="input_search" navindex="21" inputtype="date" style="left:896px; top:8px; width:90px; height:19px; "/>
- <button id="button4" class="btn1_letter2" navindex="23" 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[
- fGetFrznPtNolist();
- ]]>
- </script>
- </button>
- <select1 id="combo1" ref="/root/init/ptnocode" navindex="15" appearance="minimal" editmode="search" style="left:109px; top:8px; width:186px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/ptnocd/ptnocdlist">
- <label ref="ptnonm"/>
- <value ref="ptnocd"/>
- </itemset>
- </choices>
- </select1>
- <input id="input6" ref="/root/init/fromptno" class="text_center" navindex="17" maxlength="6" style="left:328px; top:8px; width:50px; height:19px; "/>
- <caption id="caption14" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">병리번호 :</caption>
- <caption id="caption15" class="search_no_b" style="left:381px; top:8px; width:12px; height:17px; ">~</caption>
- <input id="input7" ref="/root/init/toptno" class="text_center" navindex="19" maxlength="6" style="left:426px; top:8px; width:50px; height:19px; "/>
- <input id="input8" ref="/root/init/toyear" class="text_center" navindex="18" maxlength="2" style="left:396px; top:8px; width:27px; height:19px; "/>
- <input id="input9" ref="/root/init/fromyear" class="text_center" navindex="16" maxlength="2" style="left:298px; top:8px; width:27px; height:19px; "/>
- </group>
- <datagrid id="grd_frznlist" nodeset="/root/main/frznptno/frznptnolist" class="datagrid2" caption="기관코드^ptno^병리번호^환자명^성별
나이^등록번호^진료과^주치의^수술방^접수일자^접수시간^수술번호^orgacptdd^oproomcd" colsep="^" colwidth="0, 0, 80, 60, 43, 70, 50, 60, 50, 70, 60, 80, 100, 0" mergecellsfixedrows="bycolrec" rowsep="|" navindex="24" style="left:0px; top:65px; width:430px; height:675px; border-color:#c0c0c0; border-style:solid; ">
- <col ref="instcd"/>
- <col ref="ptno"/>
- <col class="text_center" ref="dispptno"/>
- <col class="text_center" ref="patnm"/>
- <col class="text_center" ref="agesex"/>
- <col class="text_center" ref="pid"/>
- <col class="text_center" ref="deptnm"/>
- <col class="text_center" ref="orddrnm"/>
- <col ref="oproomnm"/>
- <col class="text_center" ref="acptdd" format="yyyy-mm-dd" mask="exclude" showmask="true"/>
- <col class="text_center" ref="acpttm" format="99:99:99" mask="exclude" showmask="true"/>
- <col ref="oprsrvno"/>
- <col ref="orgacptdd" visibility="hidden"/>
- <col ref="oproomcd"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fExePtNoGridClick(grd_frznlist.row, "0", sInptFlag);
- ]]>
- </script>
- </datagrid>
- <caption id="caption9" class="tit_2" style="left:6px; top:45px; width:126px; height:13px; ">동결절편 접수목록</caption>
- <caption id="caption10" class="tit_2" style="left:439px; top:45px; width:157px; height:13px; ">세부 목록</caption>
- <line id="line4" class="line_1" style="x1:0px; y1:60px; x2:430px; y2:60px; "/>
- <line id="line5" class="line_1" style="x1:435px; y1:60px; x2:1193px; y2:60px; "/>
- <datagrid id="grd_rsltinpt" nodeset="/root/main/frzncste/frzncstelist" class="datagrid2" autoresize="true" caption="instcd^ptno^dispptno^spcacptdd^spcacptno^검체코드^^검체
번호^검체명^Cassette
번호^Cassette
내용^접수일자^접수
시간^입고일자^Slide
제작시간^판독일자^진단
시간^TAT
(분)^진단결과^판독의명1^판독의사1^판독의명2^판독의사2^판독의명3^판독의사3^delyflagcd^지연사유^orgreaddrid1^보관^orgreadtm^inptflagcd^grosdd^cryostatdd^Comment^oprsrvno^oproomcd^oproomnm^pid^patnm^지연사유명" colsep="^" colwidth="0, 0, 0, 0, 0, 0, 28, 35, 92, 0, 80, 0, 54, 100, 54, 0, 54, 37, 120, 0, 65, 0, 65, 0, 0, 0, 72, 100, 50, 100, 100, 100, 100, 0, 0, 0, 0, 0, 0, 0" dataheight="25" forecolorfrozen="#339966" frozencols="6" mergecellsfixedrows="bycolrec" rowheight="32" rowsep="|" navindex="25" style="left:435px; top:65px; width:758px; height:675px; border-color:#c0c0c0; border-style:solid; ">
- <col ref="instcd"/>
- <col ref="ptno"/>
- <col ref="dispptno"/>
- <col ref="spcacptdd"/>
- <col ref="spcacptno"/>
- <col ref="spccd"/>
- <col ref="choi" type="checkbox"/>
- <col ref="spcacptseqno"/>
- <col ref="spcnm"/>
- <col ref="csteno"/>
- <col ref="cstecnts"/>
- <col ref="acptdd" type="inputdate"/>
- <col ref="acpttm" format="99:99:99" mask="exclude" showmask="true"/>
- <col ref="indd" visibility="hidden"/>
- <col ref="intm" format="99:99:99" mask="exclude" showmask="true"/>
- <col ref="readdd" type="inputdate"/>
- <col ref="readtm" type="input" format="99:99:99" mask="exclude" showmask="true"/>
- <col ref="tat" format="###"/>
- <col ref="readrslt" type="input" maxbyte="900"/>
- <col ref="readdrnm1"/>
- <col ref="readdrid1" type="combo">
- <choices>
- <itemset nodeset="/root/init/userinfo/userinfolist[jobkindcd='1']">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- </col>
- <col ref="readdrnm2"/>
- <col ref="readdrid2" type="combo" style="left:690px; top:32px; width:100px; height:25px; ">
- <choices>
- <itemset nodeset="/root/init/userinfo/userinfolist[jobkindcd='1']">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- </col>
- <col ref="readdrnm3"/>
- <col ref="readdrid3" type="combo">
- <choices>
- <itemset nodeset="/root/init/deptuserlist/deptuserlisttbl[occukind='Y']">
- <label ref="username2"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- </col>
- <col ref="delyflagcd"/>
- <col ref="delyresncd" type="combo">
- <choices>
- <itemset nodeset="/root/init/resncd/resncdlist">
- <label ref="resncnts"/>
- <value ref="resncd"/>
- </itemset>
- </choices>
- </col>
- <col ref="orgreaddrid1" visibility="hidden"/>
- <col ref="keepflagcd" type="checkbox" visibility="hidden"/>
- <col ref="orgreadtm" visibility="hidden"/>
- <col ref="inptflagcd" visibility="hidden"/>
- <col ref="grosdd" visibility="hidden"/>
- <col ref="cryostatdd" visibility="hidden"/>
- <col ref="cmtcnts" type="input"/>
- <col ref="oprsrvno"/>
- <col ref="oproomcd"/>
- <col ref="oproomnm"/>
- <col ref="pid"/>
- <col ref="patnm"/>
- <col ref="delyresnnm"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fExeDelyClick();
- fexeTAT();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- //fExeFrznGridClick(grd_frzncstelist.row, grd_frzncstelist.col);
- fExeHeaderChoi2();
- fexeTAT();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-deselect">
- <![CDATA[
- //fExeFrznGridClick(grd_frzncstelist.row, grd_frzncstelist.col);
- fExeHeaderChoi2();
- fexeTAT();
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- // 결과 진단 컬럼 선택
- if ((iMousCol == grd_rsltinpt.colRef("readrslt")) && (iMousRow > 0) )
- {
- fExeCntsView();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- // 그리드에서 선택한 col / row 값 저장
- iMousCol = grd_rsltinpt.mouseCol;
- iMousRow = grd_rsltinpt.mouseRow;
-
- // 결과 진단 컬럼 선택
- if ((iMousCol == grd_rsltinpt.colRef("readrslt")) && (iMousRow > 0) )
- {
- fGetMouseDown();
- }
- ]]>
- </script>
- </datagrid>
- <input id="input20" ref="/root/hidden/readtm" navindex="26" format="hh:nn:ss" showmask="true" style="left:779px; top:40px; width:53px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fChangeDT("READ");
- fexeTAT();
- ]]>
- </script>
- </input>
- </group>
- </case>
- <case id="case3">
- <group id="group3" style="left:0px; top:0px; width:1193px; height:740px; ">
- <caption id="caption16" class="tit_2" style="left:6px; top:45px; width:126px; height:14px; ">검체접수 목록</caption>
- <line id="line7" class="line_1" style="x1:0px; y1:60px; x2:1193px; y2:60px; "/>
- <group id="group4" style="left:0px; top:0px; width:1193px; height:35px; vertical-align:top; ">
- <shape id="roundrect3" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line9" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption18" class="search_name" style="left:804px; top:9px; width:86px; height:17px; ">접수일자 :</caption>
- <input id="input10" ref="/root/init/refval" class="input_search" navindex="-2" style="left:635px; top:8px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fExeRefValKeyPress();
- ]]>
- </script>
- </input>
- <caption id="caption19" class="search_name" style="left:544px; top:9px; width:91px; height:17px; ">등록번호 :</caption>
- <caption id="caption20" class="search_no_b" style="left:989px; top:8px; width:12px; height:17px; ">~</caption>
- <input id="input11" ref="/root/init/acpttodd" class="input_search" navindex="29" inputtype="date" style="left:1004px; top:8px; width:90px; height:19px; "/>
- <input id="input12" ref="/root/init/acptfromdd" class="input_search" navindex="28" inputtype="date" style="left:896px; top:8px; width:90px; height:19px; "/>
- <button id="button5" class="btn1_letter2" navindex="30" 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[
- fGetFrznPtNolist();
- ]]>
- </script>
- </button>
- <select1 id="combo2" ref="/root/init/ptnocode" navindex="-15" appearance="minimal" editmode="search" style="left:109px; top:8px; width:186px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/ptnocd/ptnocdlist">
- <label ref="ptnonm"/>
- <value ref="ptnocd"/>
- </itemset>
- </choices>
- </select1>
- <input id="input13" ref="/root/init/fromptno" class="text_center" navindex="-10" maxlength="6" style="left:328px; top:8px; width:50px; height:19px; "/>
- <caption id="caption21" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">병리번호 :</caption>
- <caption id="caption22" class="search_no_b" style="left:381px; top:8px; width:12px; height:17px; ">~</caption>
- <input id="input14" ref="/root/init/toptno" class="text_center" navindex="-4" maxlength="6" style="left:426px; top:8px; width:50px; height:19px; "/>
- <input id="input15" ref="/root/init/toyear" class="text_center" navindex="-7" maxlength="2" style="left:396px; top:8px; width:27px; height:19px; "/>
- <input id="input16" ref="/root/init/fromyear" class="text_center" navindex="-13" maxlength="2" style="left:298px; top:8px; width:27px; height:19px; "/>
- </group>
- <datagrid id="grd_tatlist" nodeset="/root/main/frzntat/frzntatlist" class="datagrid2" caption="바코드번호^ptno^병리번호^등록번호^환자명^병실^검사명^Cassette명^진료과^검체명^채취
시간^수신일자^수신
시간^접수일자^접수
시간^Gross
시간^Cryostat
시간^Slide
일자^Slide
제작시간^판독일자^판독
시간^제작
소요분^제작
소요시간^판독
소요분^판독
소요시간^판독의" colsep="^" colwidth="89, 37, 76, 70, 53, 47, 130, 100, 47, 100, 50, 70, 51, 70, 50, 50, 55, 100, 55, 70, 50, 60, 60, 60, 60, 53" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" navindex="10" style="left:0px; top:65px; width:1193px; height:675px; border-color:#c0c0c0; border-style:solid; ">
- <col ref="spcbarcdno"/>
- <col ref="ptno" visibility="hidden"/>
- <col class="text_center" ref="dispptno"/>
- <col ref="pid" style="text-align:center; "/>
- <col class="text_center" ref="hngnm"/>
- <col class="text_center" ref="roomcd"/>
- <col ref="testhngnm"/>
- <col ref="cstecnts"/>
- <col class="text_center" ref="deptengabbr"/>
- <col ref="spcnm"/>
- <col ref="extrtm" format="hh:nn:ss" style="text-align:center; "/>
- <col ref="cnfmdd" visibility="hidden"/>
- <col ref="cnfmtm" format="hh:nn:ss" style="text-align:center; "/>
- <col ref="acptdd" format="yyyy-mm-dd"/>
- <col ref="acpttm" format="hh:nn:ss" style="text-align:center; "/>
- <col ref="grostm" format="hh:nn:ss" style="text-align:center; "/>
- <col ref="cryostattm" format="hh:nn:ss" style="text-align:center; "/>
- <col ref="indd" visibility="hidden"/>
- <col ref="intm" format="hh:nn:ss" style="text-align:center; "/>
- <col ref="readdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="readtm" format="hh:nn:ss" style="text-align:center; "/>
- <col ref="acptmakemin"/>
- <col ref="acptmaketm" visibility="hidden"/>
- <col ref="acptreadmin"/>
- <col ref="acptreadtm" visibility="hidden"/>
- <col ref="readdrnm1"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_tatlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="btn_excsave" class="btn2_letter4" disable.background-image="../../../com/commonweb/images/dis_btn2_letter4.gif" style="left:1128px; top:41px; width:64px; height:19px; background-image:../../../com/commonweb/images/btn2_letter4.gif; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_tatlist.colHidden(grd_tatlist.colRef("spcbarcdno")) = false;
- var fileName = window.fileDialog("save", ",", false, "프로즌판독소요시간", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != "")
- {
- grd_tatlist.saveExcel(fileName);
- grd_tatlist.colHidden(grd_tatlist.colRef("spcbarcdno")) = true;
- }
- ]]>
- </script>
- </button>
- </group>
- </case>
- </switch>
- <group id="grp_rsltcnts" visibility="hidden" style="left:55px; top:160px; width:1090px; height:525px; color:#ff0000; background-color:#fcd2c1; border-color:#f7a08b; border-left-color:#c0c0c0; border-top-color:#c0c0c0; border-right-color:#808080; border-bottom-color:#808080; border-width:2; border-style:solid; ">
- <line id="line3" class="line_1" style="x1:3px; y1:26px; x2:1084px; y2:26px; "/>
- <textarea id="tar_rsltcnts" ref="/root/hidden/rsltcont" maxbyte="900" style="left:3px; top:33px; width:1080px; height:460px; font-family:굴림체; font-size:16pt; "/>
- <button id="btn_rsltclose" class="btn4_letter2" style="left:968px; top:498px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeCloseCntsView();
- ]]>
- </script>
- </button>
- <caption id="cap_title" class="tit_2" style="left:6px; top:9px; width:338px; height:13px; ">진단결과</caption>
- <button id="btn_exmp100802" class="btn2_letter4" style="left:1013px; top:4px; width:64px; height:19px; ">
- <caption>결과예문</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- iCheck = "1";
- fExeExmpCall();
- ]]>
- </script>
- </button>
- <button id="button1" class="btn4_letter2" style="left:1028px; top:498px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- tar_rsltcnts.refresh();
- grp_rsltcnts.visible = false;
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|