1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLPR00400_세포결과일괄등록.xrw
- * 설 명 : 세포결과일괄등록
- * 설 계 자 :
- * 작 성 자 : 유동철(ACK)
- * 작 성 일 : 2007.06.02
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <acptptno>
- <acptptnolist>
- <choi/>
- <instcd/>
- <ptno/>
- <dispptno/>
- <acptdd/>
- <pid/>
- <patnm/>
- <cellusernm/>
- <celluserid/>
- <testrslt1/>
- <readdrnm1/>
- <readdrid1/>
- <readdrnm2/>
- <readdrid2/>
- <readrslt/>
- <dummy1/>
- <lastdrid/>
- <lastrslt/>
- <dummy2/>
- <rsltstat/>
- <rsltrgstdd/>
- <rsltrgstno/>
- <cellrgstdd/>
- <cellrgstno/>
- <doctrgstdd/>
- <doctrgstno/>
- <rsltcnts4/>
- <rsltcnts5/>
- <statsworkflagcd/>
- <extrpartcd/>
- <extrmthdcd/>
- <diagcnts/>
- <diagcd/>
- <cmtcnts/>
- <readgrade/>
- <wardcd/>
- <age/>
- <reqfrmno/>
- <reqfrmflagcd/>
- <rsltcnts6/>
- <readid/>
- <sepo1mcnts/>
- <sepo2mcnts/>
- <sepo3mcnts/>
- <cellrsltrgstid/>
- </acptptnolist>
- </acptptno>
- <ncharrslt/>
- </main>
- <send/>
- <init>
- <hospenv>
- <hospenvinfo>
- <instcd/>
- <lendrtnterm/>
- <recvqualmthdcd/>
- <plgydeptcd/>
- <plgyteamcd/>
- <doctjobgradcd/>
- <teamjobgradcd/>
- </hospenvinfo>
- </hospenv>
- <sysdt>
- <sysdtinfo>
- <sysdd/>
- <systm/>
- </sysdtinfo>
- </sysdt>
- <userinfo>
- <userinfolist>
- <userid/>
- <usernm/>
- <jobkindcd/>
- </userinfolist>
- </userinfo>
- <seporesn1>
- <dgflagcd>1</dgflagcd>
- <seporslt/>
- <seporesninfo>
- <title>Cervico-vaginal smear, liquid based cytology, automated screening system;</title>
- <title01>1) Adequacy of specimen</title01>
- <val01>false</val01>
- <lbl01>1. satisfactory for evaluation</lbl01>
- <val02>false</val02>
- <lbl02>2. unsatisfactory for evaluation</lbl02>
- <title02>2) Cytologic diagnosis</title02>
- <val03>false</val03>
- <lbl03>1. Negative for intraepithelial lesion or malignancy</lbl03>
- <val04>false</val04>
- <lbl04>1. Organisms :</lbl04>
- <val05>false</val05>
- <lbl05>1. Fungus(Candida sp.),</lbl05>
- <val06>false</val06>
- <lbl06>2. Trichomonas</lbl06>
- <val07>false</val07>
- <lbl07>3. Actinomyces</lbl07>
- <val08>false</val08>
- <lbl08>4. Other</lbl08>
- <val09>false</val09>
- <lbl09>2. Other non neoplastic findings :</lbl09>
- <val10>false</val10>
- <lbl10>1. RCC(Inflammation)</lbl10>
- <val11>false</val11>
- <lbl11>2. Atrophy</lbl11>
- <val12>false</val12>
- <lbl12>3. Therapeutic effect</lbl12>
- <val13>false</val13>
- <lbl13>2. Epithelial cell abnormalities</lbl13>
- <val14>false</val14>
- <lbl14>1. Squamous cell :</lbl14>
- <val15>true</val15>
- <lbl15>1. ASC-US</lbl15>
- <val16>false</val16>
- <lbl16>2. ASC-H</lbl16>
- <val17>false</val17>
- <lbl17>3. LSIL</lbl17>
- <val18>false</val18>
- <lbl18>4. HSIL</lbl18>
- <val19>false</val19>
- <lbl19>5. SCC</lbl19>
- <val20>false</val20>
- <lbl20>2. Glandular cell :</lbl20>
- <val21>false</val21>
- <lbl21>1. AGC</lbl21>
- <val22>false</val22>
- <lbl22>2. Endocervical AIS</lbl22>
- <val23>false</val23>
- <lbl23>3. Adenocarcinoma</lbl23>
- <val24>false</val24>
- <lbl24>3. Other malignant neoplasm :</lbl24>
- </seporesninfo>
- </seporesn1>
- <seporesn2>
- <dgflagcd>1</dgflagcd>
- <seporslt/>
- <seporesninfo>
- <title>Cervico-vaginal smear, liquid based cytology, automated screening system;</title>
- <title01>1) Adequacy of specimen</title01>
- <val01>false</val01>
- <lbl01>1. satisfactory for evaluation</lbl01>
- <val02>false</val02>
- <lbl02>2. unsatisfactory for evaluation</lbl02>
- <title02>2) Cytologic diagnosis</title02>
- <val03>false</val03>
- <lbl03>1. Negative for intraepithelial lesion or malignancy</lbl03>
- <val04>false</val04>
- <lbl04>1. Organisms :</lbl04>
- <val05>false</val05>
- <lbl05>1. Fungus(Candida sp.),</lbl05>
- <val06>false</val06>
- <lbl06>2. Trichomonas</lbl06>
- <val07>false</val07>
- <lbl07>3. Actinomyces</lbl07>
- <val08>false</val08>
- <lbl08>4. Other</lbl08>
- <val09>false</val09>
- <lbl09>2. Other non neoplastic findings :</lbl09>
- <val10>false</val10>
- <lbl10>1. RCC(Inflammation)</lbl10>
- <val11>false</val11>
- <lbl11>2. Atrophy</lbl11>
- <val12>false</val12>
- <lbl12>3. Therapeutic effect</lbl12>
- <val13>false</val13>
- <lbl13>2. Epithelial cell abnormalities</lbl13>
- <val14>false</val14>
- <lbl14>1. Squamous cell :</lbl14>
- <val15>true</val15>
- <lbl15>1. ASC-US</lbl15>
- <val16>false</val16>
- <lbl16>2. ASC-H</lbl16>
- <val17>false</val17>
- <lbl17>3. LSIL</lbl17>
- <val18>false</val18>
- <lbl18>4. HSIL</lbl18>
- <val19>false</val19>
- <lbl19>5. SCC</lbl19>
- <val20>false</val20>
- <lbl20>2. Glandular cell :</lbl20>
- <val21>false</val21>
- <lbl21>1. AGC</lbl21>
- <val22>false</val22>
- <lbl22>2. Endocervical AIS</lbl22>
- <val23>false</val23>
- <lbl23>3. Adenocarcinoma</lbl23>
- <val24>false</val24>
- <lbl24>3. Other malignant neoplasm :</lbl24>
- </seporesninfo>
- </seporesn2>
- <seporesn3>
- <seporesninfo>
- <title>Thyroid, left, conventional smear, needle aspiration cytology with cell block(증례별 자동인쇄);</title>
- <title01>1) Adequacy of specimen</title01>
- <val01>false</val01>
- <lbl01>1. satisfactory for evaluation</lbl01>
- <val02>false</val02>
- <lbl02>2. unsatisfactory for evaluation</lbl02>
- <title02>2) Cytologic diagnosis</title02>
- <val03>false</val03>
- <lbl03>1. Negative for malignancy</lbl03>
- <val04>false</val04>
- <lbl04>2. Atypical cells</lbl04>
- <val05>false</val05>
- <lbl05>3. Malignancy</lbl05>
- <val06>false</val06>
- <lbl06>4. Others</lbl06>
- <val07/>
- <lbl07>* Description :</lbl07>
- </seporesninfo>
- <dgflagcd/>
- <seporslt/>
- </seporesn3>
- <seporesn4>
- <seporesninfo>
- <title>Thyroid, left, conventional smear, needle aspiration cytology with cell block(증례별 자동인쇄);</title>
- <title01>1) Adequacy of specimen</title01>
- <val01>false</val01>
- <lbl01>1. satisfactory for evaluation</lbl01>
- <val02>false</val02>
- <lbl02>2. unsatisfactory for evaluation</lbl02>
- <title02>2) Cytologic diagnosis</title02>
- <val03>false</val03>
- <lbl03>1. Negative for malignancy</lbl03>
- <val04>false</val04>
- <lbl04>2. Atypical cells</lbl04>
- <val05>false</val05>
- <lbl05>3. Malignancy</lbl05>
- <val06>false</val06>
- <lbl06>4. Others</lbl06>
- <val07/>
- <lbl07>* Description :</lbl07>
- </seporesninfo>
- <dgflagcd/>
- <seporslt/>
- </seporesn4>
- <sepoflagcd1/>
- <sepoflagcd2/>
- <sepoflagcd3/>
- <resncd>
- <resncdlist>
- <instcd/>
- <baseflagcd/>
- <resncd/>
- <resncnts/>
- </resncdlist>
- </resncd>
- <workflagcd/>
- <popupmenu>
- <item>
- <nm>의뢰지정보</nm>
- <funt>fExeReqFrmInfo</funt>
- </item>
- <item>
- <nm>CF정보</nm>
- <funt>fExeCFInfo</funt>
- </item>
- <item--DEL>
- <nm>결과확대</nm>
- <funt>fExeRsltView</funt>
- </item--DEL>
- </popupmenu>
- <testinfo>
- <testcdlist/>
- </testinfo>
- <sepouser1/>
- <sepouser2/>
- <sepouser3/>
- <rsltview/>
- <screenerlist>
- <screenerinfo>
- <usernm/>
- <resncd/>
- <screenflag/>
- </screenerinfo>
- </screenerlist>
- <exmpcd_8000>
- <exmpcdlist/>
- </exmpcd_8000>
- <exmpcd_9000>
- <exmpcdlist/>
- </exmpcd_9000>
- <exmpcd_6000>
- <exmpcdlist/>
- </exmpcd_6000>
- </init>
- <hidden>
- <acptfromdd/>
- <acpttodd/>
- <rsltdg>0</rsltdg>
- <userdeptcd/>
- <testrslt1/>
- <readrslt/>
- </hidden>
- <temp>
- <loginid/>
- <exmpcd>
- <exmpcdlist/>
- </exmpcd>
- <rsltcnts/>
- </temp>
- </root>
- </instance>
- <bind id="bind1" ref="/root/main/acptptno/acptptnolist/choi" readonly="../choi/@readonly = 'true'"/>
- <bind id="bind2" ref="/root/main/acptptno/acptptnolist/celluserid" readonly="../celluserid/@disabled = 'true'"/>
- <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/stringHelper.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
- <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="TRLPZ00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/testinfo/testcdlist"/>
- <submission id="TRLPZ00111" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/exmpcd/exmpcdlist"/>
- <submission id="TRLPR00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/acptptno/acptptnolist"/>
- <submission id="TXLPR00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/message"/>
- <submission id="TRLPC02701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/screenerlist"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fExeInitialize();
- ]]>
- </script>
- </model>
- <script type="javascript">
- <![CDATA[
-
- var gRowSize = 0; // 결과 확인을 하기 위해
-
- /* @group : 세포결과 일괄등록
- * @ver : 2007.06.02 (CMCDEV-0001)
- * @by : 유동철
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 화면 초기화 처리 함수
- */
- function fExeInitialize()
- {
- //-----------------------
- // 사용자의 비밀번호 확인
- // lpzfExeUserPwdCnfm();
-
- //------------------------------------------------------
- model.removeNodeset("/root/main/acptptno/acptptnolist");
-
- //-----------------------
- // 병원환경설정 정보 조회
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- submit("TRLPZ00101", false);
-
- //---------------------------------------------------------
- // 병원환경정보를 취득하여 병리과와 병리팀 코드를 편집한다.
- lpzfUserDeptCd("/root/init/hospenv/hospenvinfo", "/root/hidden");
-
- //----------------
- // 시스템일시 조회
- submit("TRLPZ00102", false);
-
- //--------------------
- // 작업구분 목록 조회
- model.removeNodeset("/root/init/resncd/resncdist");
- model.makeValue("/root/send/baseflagcd", "'84'");
- submit("TRLPZ00103");
-
- //--------------------
- // 부인과 예문
- model.removeNodeset("/root/temp/exmpcd/exmpcdlist");
- model.removeNodeset("/root/init/exmpcd_8000/exmpcdlist");
- model.makeValue("/root/send/fromexmpcd", "800000"); // 부인과 예문
- model.makeValue("/root/send/toexmpcd", "8zzzzz");
- submit("TRLPZ00111");
- model.copyNode("/root/init/exmpcd_8000", "/root/temp/exmpcd");
-
- //---------------
- // 비부인과 예문
- model.removeNodeset("/root/temp/exmpcd/exmpcdlist");
- model.removeNodeset("/root/init/exmpcd_9000/exmpcdlist");
- model.makeValue("/root/send/fromexmpcd", "900000"); // 부인과 예문
- model.makeValue("/root/send/toexmpcd", "9zzzzz");
- submit("TRLPZ00111");
- model.copyNode("/root/init/exmpcd_9000", "/root/temp/exmpcd");
- //---------------
- // 세침흡인 예문
- model.removeNodeset("/root/temp/exmpcd/exmpcdlist");
- model.removeNodeset("/root/init/exmpcd_6000/exmpcdlist");
- model.makeValue("/root/send/fromexmpcd", "600000"); // 부인과 예문
- model.makeValue("/root/send/toexmpcd", "6zzzzz");
- submit("TRLPZ00111");
- model.copyNode("/root/init/exmpcd_6000", "/root/temp/exmpcd");
- //----------------------------------------------------------------------------------
- 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/hidden/acptfromdd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd")); // 접수시작일자
- model.makeValue("/root/hidden/acpttodd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd")); // 접수종료일자
- model.makeValue("/root/hidden/rsltdg", "0"); // 검색방법(0:접수, 1:1차, 2:2차, 3:전체)
- model.makeValue("/root/init/workflagcd", "1021");
-
- // 요청으로 부인과 초기화
- model.makeValue("/root/init/sepoflagcd1", "1021");
- model.makeValue("/root/init/sepoflagcd2", "1021");
- model.makeValue("/root/init/sepoflagcd3", "1021");
-
- //1, 2차 세포스크리너 조회.
- model.makeValue("/root/send/screenflag", "0"); // 1 : 1차스크리너, 2 : 2차스크리너
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/baseflagcd", "SC");
- submit("TRLPC02701");
-
- //-----------------------------------------
- grd_ptnolist.fixedcellcheckbox(0,0) = true;
-
- //-----------------------
- chb_workflagcd.refresh();
- model.refresh();
- }
-
- /* @group : 세포결과 일괄등록
- * @ver : 2007.06.02 (CMCDEV-0001)
- * @by : 유동철
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 세포 병리번호 목록 조회 처리 함수
- */
- function fGetCellPtNoList()
- {
- var re = / /g; // i:1회실행, g:모두실행, gi:전역실행(대소문자 안가림)
- var sNode = "/root/main/acptptno/acptptnolist";
- var sWorkFlagCd = model.getValue("/root/init/workflagcd");
- var sRslt1 = "";
- var sRslt2 = "";
- var arrayWorkFlagCd = new Array();
- //------------------------------------------------
- // Regular표현식을 사용하여 공백(" ")문자를 ','로 변환
- sWorkFlagCd = "'" + sWorkFlagCd.replace(re, "','") + "'";
-
- arrayWorkFlagCd = sWorkFlagCd.split(",");
-
- for(var i = 0; arrayWorkFlagCd.length > i; i ++)
- {
- if(arrayWorkFlagCd[i] == "'1021'")
- {
- sWorkFlagCd += "," + "'10D2'";
- }
- else if(arrayWorkFlagCd[i] == "'1022'" || arrayWorkFlagCd[i] == "'1023'")
- {
- sWorkFlagCd += "," + "'10D0'";
-
- if(arrayWorkFlagCd[i] == "'1022'") {
- sWorkFlagCd += "," + "'10B2'";
- } else {
- sWorkFlagCd += "," + "'10B3'";
- }
-
- }
- }
-
- //--------------------------------
- model.removeNodeset("/root/send");
- model.removeNodeset("/root/main/acptptno/acptptnolist");
-
- //---------------------------------------------------------------------
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd")); // 기관코드
- model.makeValue("/root/send/acptfromdd", model.getValue("/root/hidden/acptfromdd")); // 접수시작일자
- model.makeValue("/root/send/acpttodd", model.getValue("/root/hidden/acpttodd")); // 접수종료일자
- model.makeValue("/root/send/rsltdg", model.getValue("/root/hidden/rsltdg")); // 검색방법(0:1차,1:2차,2:전체)
- model.makeValue("/root/send/workflagcd", sWorkFlagCd); // 작업구분(1021:부인, 1022:비부인, 1023:세침흡인)
-
- //-------------------
- submit("TRLPR00401");
-
-
- //--------------------------------------------------------
- // 1차결과와 2차결과를 비교하여 다른 경우 색으로 구분한다.
- for (var iNo=1; iNo <= getNodesetCount(sNode); iNo++)
- {
- //--------------------------
- // 1차, 2차가 빈 경우는 제외
- sRslt1 = model.getValue(sNode+"["+iNo+"]/testrslt1");
- sRslt2 = model.getValue(sNode+"["+iNo+"]/readrslt");
-
- //------------------------------------------------------
- if (sRslt1.getTrim() != "" && sRslt2.getTrim() != "")
- {
- //------------------------------------------
- if (sRslt1.getTrim() != sRslt2.getTrim())
- {
- grd_ptnolist.rowstyle(iNo, "data", "background-color") = "#ff99cc";
- }
- else
- {
- grd_ptnolist.rowstyle(iNo, "data", "background-color") = "#ffffff";
- }
- }
- }
- }
-
- /* @group : 세포결과 일괄등록
- * @ver : 2007.06.02 (CMCDEV-0001)
- * @by : 유동철
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 세포 병리번호 목록 선택 처리 함수
- */
- function fExeGridClick(pColNo, pRowNo) {
- var sSrcNode = "/root/main/acptptno/acptptnolist";
-
- //--------------------------------------------------------
- // 선택 Header를 클릭하였을 경우 모든 자료를 선택으로 설정
- if (pRowNo == 0 && pColNo == 0)
- {
- }
- else
- {
- if(grd_ptnolist.row > 0 && grd_ptnolist.isCell(event.target) && grd_ptnolist.row >= grd_ptnolist.fixedRows)
- {
- // 결과복사 실행
- if (pColNo == 15) fExeRsltCopy("1", pRowNo);
- if (pColNo == 18) fExeRsltCopy("2", pRowNo);
- if (pColNo == 33) fExeDiagPopup(pRowNo);
-
- // 입력된 결과 확인 할 수 있도록
- if ( (pColNo == 9) || (pColNo == 14) || (pColNo == 17) )
- {
- fExeSelTxt(pColNo, pRowNo);
- }
- }
- }
- }
-
- /* @group : 세포결과 일괄등록
- * @ver : 2008.12.03 (CMCDEV-0001)
- * @by : 하만석
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 입력된 결과 확인 할 수 있도록
- */
- function fExeSelTxt(pColNo, iRow)
- {
- sTmp = "";
- BoolShow= false;
- sSetNode = "/root/main/acptptno/acptptnolist";
-
- model.resetInstanceNode("/root/main/ncharrslt");
- grp_showrslt.attribute("top") = 100 + (25 * iRow);
-
- if (pColNo == 9) // 1 차 결과
- {
- sTmp = model.getValue(sSetNode + "[" + iRow + "]/testrslt1")
-
- if (sTmp.length > 1)
- {
- grp_showrslt.attribute("left") = 365;
- model.makeValue("/root/main/ncharrslt", sTmp);
- BoolShow = true;
- }
- }
- else if (pColNo == 14) // 2 차 결과
- {
- sTmp = model.getValue(sSetNode + "[" + iRow + "]/readrslt")
-
- if (sTmp.length > 1)
- {
- grp_showrslt.attribute("left") = 535;
- model.makeValue("/root/main/ncharrslt", sTmp);
- BoolShow = true;
- }
- }
- else if (pColNo == 17) // 최종 결과
- {
- sTmp = model.getValue(sSetNode + "[" + iRow + "]/lastrslt")
-
- if (sTmp.length > 1)
- {
- grp_showrslt.attribute("left") = 720;
- model.makeValue("/root/main/ncharrslt", sTmp);
- BoolShow = true;
- }
- }
-
- if (BoolShow == true) //결과가 있을 경우만 보여지도록
- {
- grp_showrslt.visible = true;
- }
-
- grp_showrslt.refresh();
- }
-
- /* @group : 세포결과 일괄등록
- * @ver : 2007.10.29 (CMCDEV-0001)
- * @by : 유동철
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 결과복사 처리 함수
- */
- function fExeRsltCopy(pBizFlagCd, pRowNo)
- {
- var iEndRowNo = 0;
- var iStartRowNo = 0;
- var bCheckVal1 = "true";
- var bCheckVal2 = "true";
- var sSrcSePo = "";
- var sDescSePo = "";
- var sNode = "/root/main/acptptno/acptptnolist";
-
- var sSepomcnts = "";
-
- //----------------
- if (pRowNo == 0) {
- bCheckVal1 = "true";
- bCheckVal2 = "true";
- iStartRowNo = 1;
- iEndRowNo = getNodesetCount(sNode);
- } else {
- bCheckVal1 = "true";
- bCheckVal2 = "false";
- iStartRowNo = pRowNo;
- iEndRowNo = pRowNo;
- }
-
- //--------------------------------------------------
- for (var iNo=iStartRowNo; iNo <= iEndRowNo; iNo++) {
-
- if (model.getValue(sNode+"["+iNo+"]/choi") == bCheckVal1 || model.getValue(sNode+"["+iNo+"]/choi") == bCheckVal2) {
-
- //-------------------
- switch (pBizFlagCd) {
- case "1" :
- model.setValue(sNode+"["+iNo+"]/readrslt", model.getValue(sNode+"["+iNo+"]/testrslt1"));
- model.setValue(sNode+"["+iNo+"]/rsltcnts5", model.getValue(sNode+"["+iNo+"]/rsltcnts4"));
- //model.setValue(sNode+"["+iNo+"]/diagcnts", model.getValue(sNode+"["+iNo+"]/sepo1mcnts"));
- //model.setValue(sNode+"["+iNo+"]/sepo2mcnts", model.getValue(sNode+"["+iNo+"]/sepo1mcnts"));
-
- if( model.getValue(sNode+"["+iNo+"]/sepo1mcnts") == "" || model.getValue(sNode+"["+iNo+"]/sepo1mcnts") == "-" ) {
- sSepomcnts = fExeSepoMcnts(pBizFlagCd, iNo);
- model.setValue(sNode+"["+iNo+"]/diagcnts", sSepomcnts);
- model.setValue(sNode+"["+iNo+"]/sepo2mcnts", sSepomcnts);
- model.setValue(sNode+"["+iNo+"]/sepo1mcnts", sSepomcnts);
- }
- else {
- model.setValue(sNode+"["+iNo+"]/diagcnts", model.getValue(sNode+"["+iNo+"]/sepo1mcnts"));
- model.setValue(sNode+"["+iNo+"]/sepo2mcnts", model.getValue(sNode+"["+iNo+"]/sepo1mcnts"));
- }
-
-
- //----------------------------------------------------------------
- if (model.getValue(sNode+"["+iNo+"]/statsworkflagcd") == "1021" || model.getValue(sNode+"["+iNo+"]/statsworkflagcd") == "10D2") {
- sSrcSePo = "/root/init/seporesn1";
- sDescSePo = "/root/init/seporesn2";
-
- } else if (model.getValue(sNode+"["+iNo+"]/statsworkflagcd") == "1023") {
- sSrcSePo = "/root/init/seporesn7";
- sDescSePo = "/root/init/seporesn8";
-
- } else if (model.getValue(sNode+"["+iNo+"]/statsworkflagcd") == "1022"
- || model.getValue(sNode+"["+iNo+"]/statsworkflagcd") == "10B2"
- || model.getValue(sNode+"["+iNo+"]/statsworkflagcd") == "10B3"
- || model.getValue(sNode+"["+iNo+"]/statsworkflagcd") == "10D0") {
- sSrcSePo = "/root/init/seporesn4";
- sDescSePo = "/root/init/seporesn5";
- }
- break;
-
- case "2" :
- if (model.getValue(sNode+"["+iNo+"]/readrslt") != "") {
- model.setValue(sNode+"["+iNo+"]/lastrslt", model.getValue(sNode+"["+iNo+"]/readrslt"));
- model.setValue(sNode+"["+iNo+"]/rsltcnts6", model.getValue(sNode+"["+iNo+"]/rsltcnts5"));
- //model.setValue(sNode+"["+iNo+"]/diagcnts", model.getValue(sNode+"["+iNo+"]/sepo2mcnts"));
- //model.setValue(sNode+"["+iNo+"]/sepo3mcnts", model.getValue(sNode+"["+iNo+"]/sepo2mcnts"));
- if( model.getValue(sNode+"["+iNo+"]/sepo2mcnts") == "" || model.getValue(sNode+"["+iNo+"]/sepo2mcnts") == "-" ) {
- sSepomcnts = fExeSepoMcnts(pBizFlagCd, iNo);
- model.setValue(sNode+"["+iNo+"]/diagcnts", sSepomcnts);
- model.setValue(sNode+"["+iNo+"]/sepo3mcnts", sSepomcnts);
- model.setValue(sNode+"["+iNo+"]/sepo2mcnts", sSepomcnts);
- }
- else {
- model.setValue(sNode+"["+iNo+"]/diagcnts", model.getValue(sNode+"["+iNo+"]/sepo2mcnts"));
- model.setValue(sNode+"["+iNo+"]/sepo3mcnts", model.getValue(sNode+"["+iNo+"]/sepo2mcnts"));
- }
-
- //----------------------------------------------------------------
- if (model.getValue(sNode+"["+iNo+"]/statsworkflagcd") == "1021" || model.getValue(sNode+"["+iNo+"]/statsworkflagcd") == "10D2") {
- sSrcSePo = "/root/init/seporesn2";
- sDescSePo = "/root/init/seporesn3";
-
- } else if (model.getValue(sNode+"["+iNo+"]/statsworkflagcd") == "1023") {
- sSrcSePo = "/root/init/seporesn8";
- sDescSePo = "/root/init/seporesn9";
-
- } else if (model.getValue(sNode+"["+iNo+"]/statsworkflagcd") == "1022"
- || model.getValue(sNode+"["+iNo+"]/statsworkflagcd") == "10B2"
- || model.getValue(sNode+"["+iNo+"]/statsworkflagcd") == "10B3"
- || model.getValue(sNode+"["+iNo+"]/statsworkflagcd") == "10D0") {
- sSrcSePo = "/root/init/seporesn5";
- sDescSePo = "/root/init/seporesn6";
- }
- }
- break;
-
- case "3" :
- model.setValue(sNode+"["+iNo+"]/lastrslt", model.getValue(sNode+"["+iNo+"]/testrslt1"));
- model.setValue(sNode+"["+iNo+"]/rsltcnts6", model.getValue(sNode+"["+iNo+"]/rsltcnts4"));
- //model.setValue(sNode+"["+iNo+"]/diagcnts", model.getValue(sNode+"["+iNo+"]/sepo1mcnts"));
- //model.setValue(sNode+"["+iNo+"]/sepo3mcnts", model.getValue(sNode+"["+iNo+"]/sepo1mcnts"));
-
- if( model.getValue(sNode+"["+iNo+"]/sepo1mcnts") == "" || model.getValue(sNode+"["+iNo+"]/sepo1mcnts") == "-" ) {
- sSepomcnts = fExeSepoMcnts(pBizFlagCd, iNo);
- model.setValue(sNode+"["+iNo+"]/diagcnts", sSepomcnts);
- model.setValue(sNode+"["+iNo+"]/sepo3mcnts", sSepomcnts);
- model.setValue(sNode+"["+iNo+"]/sepo1mcnts", sSepomcnts);
- }
- else {
- model.setValue(sNode+"["+iNo+"]/diagcnts", model.getValue(sNode+"["+iNo+"]/sepo1mcnts"));
- model.setValue(sNode+"["+iNo+"]/sepo3mcnts", model.getValue(sNode+"["+iNo+"]/sepo1mcnts"));
- }
-
- //----------------------------------------------------------------
- if (model.getValue(sNode+"["+iNo+"]/statsworkflagcd") == "1021" || model.getValue(sNode+"["+iNo+"]/statsworkflagcd") == "10D2") {
- sSrcSePo = "/root/init/seporesn1";
- sDescSePo = "/root/init/seporesn3";
-
- } else if (model.getValue(sNode+"["+iNo+"]/statsworkflagcd") == "1023") {
- sSrcSePo = "/root/init/seporesn7";
- sDescSePo = "/root/init/seporesn9";
-
- } else if (model.getValue(sNode+"["+iNo+"]/statsworkflagcd") == "1022"
- || model.getValue(sNode+"["+iNo+"]/statsworkflagcd") == "10B2"
- || model.getValue(sNode+"["+iNo+"]/statsworkflagcd") == "10B3"
- || model.getValue(sNode+"["+iNo+"]/statsworkflagcd") == "10D0") {
- sSrcSePo = "/root/init/seporesn4";
- sDescSePo = "/root/init/seporesn6";
- }
-
- break;
- }
-
- //-----------------------------------
- copyNodesetType(sDescSePo, sSrcSePo);
- }
- }
-
- //---------------------
- grd_ptnolist.refresh();
- }
-
- /* @group : 세포결과 일괄등록
- * @ver : 2007.06.02 (CMCDEV-0001)
- * @by : 유동철
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 결과 일괄적용 처리 함수
- */
- /*
- function fExeKeyPreass(pBizFlag, pControl) {
-
- var sTestRslt;
- var sSrcNode = "/root/main/acptptno/acptptnolist";
-
- //-----------
- // Return Key
- if (event.keyCode == 13) {
- sTestRslt = pControl.currentText;
- pControl.refresh();
- //-----------------------------------------------------------------
- for (var iRowNo=1; iRowNo <= getNodesetCount(sSrcNode); iRowNo++) {
-
- if (model.getValue(sSrcNode + "[" + iRowNo + "]/choi") == "true") {
-
- //--------------------
- if (pBizFlag == "1") {
- if (model.getValue(sSrcNode + "[" + iRowNo + "]/testrslt1") == "") {
- model.makeValue(sSrcNode + "[" + iRowNo + "]/testrslt1", sTestRslt);
- }
- } else {
- if (model.getValue(sSrcNode + "[" + iRowNo + "]/readrslt") == "") {
- model.makeValue(sSrcNode + "[" + iRowNo + "]/readrslt", sTestRslt);
- }
- }
- }
- }
- }
- }
- */
-
- /* @group : 세포결과 일괄등록
- * @ver : 2007.06.02 (CMCDEV-0001)
- * @by : 유동철
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 세포결과 저장 처리 함수
- */
- function fExeCellRsltSave() {
-
- var iFindNo = 0;
- var sSrcNode = "/root/main/acptptno/acptptnolist";
-
- //-----------------------------
- //추가 박중규 2008.09.25
- //스크리너 입력 여부를 판단
- for(var iRowNum = 1 ; iRowNum < grd_ptnolist.rows ; iRowNum++){
-
- if(model.getValue(sSrcNode + "[" + iRowNum + "]/choi") == "true"){
-
- if(model.getValue(sSrcNode + "[" + iRowNum + "]/testrslt1") != "" && model.getValue(sSrcNode + "[" + iRowNum + "]/testrslt1") != "-" && model.getValue(sSrcNode + "[" + iRowNum + "]/testrslt1") != " "){
- if(model.getValue(sSrcNode + "[" + iRowNum + "]/celluserid") == "-" || model.getValue(sSrcNode + "[" + iRowNum + "]/celluserid") == ""){
- messageBox("(" + iRowNum + ")" + "1차 스크리너를 선택하여 주십시오! 1차 스크리너는 ", "I003");
- return false;
- }
- }
- if(model.getValue(sSrcNode + "[" + iRowNum + "]/readrslt") != "" && model.getValue(sSrcNode + "[" + iRowNum + "]/readrslt") != "-" && model.getValue(sSrcNode + "[" + iRowNum + "]/readrslt") != " "){
- if(model.getValue(sSrcNode + "[" + iRowNum + "]/readdrid1") == "-" || model.getValue(sSrcNode + "[" + iRowNum + "]/readdrid1") == ""){
- messageBox("(" + iRowNum + ")" + "2차 스크리너를 선택하여 주십시오! 2차 스크리너는 ", "I003");
- return false;
- }
- }
-
- if(model.getValue(sSrcNode + "[" + iRowNum + "]/readid") != "" && model.getValue(sSrcNode + "[" + iRowNum + "]/readid") != "-" && model.getValue(sSrcNode + "[" + iRowNum + "]/readid") != " "){
- messageBox("(" + iRowNum + ")" + "판독완료상태 입니다. 저장 할 수 없습니다.", "I999");
- return false;
- }
-
- }
-
- }
-
- //-------------------------------------------
- iFindNo = grd_ptnolist.findRow("true", 1, 0);
- if (Number(iFindNo) <= 0) {
- messageBox("저장할 병리번호를 ", "C002");
- return false;
- }
-
- //--------------------------------
- model.removeNodeset("/root/send");
-
- //-------------------
- // 세포 검사결과 저장
- grd_ptnolist.clearStatus();
- for (var iRowNo=1; iRowNo <= getNodesetCount(sSrcNode); iRowNo++) {
-
- //-----------------------------------------------------------------
- if (model.getValue(sSrcNode + "[" + iRowNo + "]/choi") == "true") {
- grd_ptnolist.addStatus(iRowNo, "insert");
-
- //결과등록자를 화면 처음 아이디를 확인한 사람으로 한다.
- model.setValue(sSrcNode+"["+iRowNo + "]/cellrsltrgstid", model.getValue("/root/temp/loginid"));
- /*
- //-------------------------------------------------------------
- if (model.getValue(sSrcNode+"["+iRowNo + "]/lastrslt") != "") {
- model.makeValue(sSrcNode+"["+iRowNo + "]/diagcd", model.getValue(sSrcNode+"["+iRowNo + "]/lastrslt"));
- }
- */
- }
- }
-
- //-------------------------------------------------------------------
- model.makeValue("/root/send/cellrslt", grd_ptnolist.getUpdateData());
- //-----------
- setAlertOn();
- if (submit("TXLPR00401")) {
- fGetCellPtNoList();
- }
- }
-
- /* @group : 세포결과일괄등록
- * @ver : 2007.10.19 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 라인별 세포 결과예문 호출 처리 Function
- */
- function fExeResnChoi()
- {
- switch (grd_ptnolist.col)
- {
- case 9 : fExeSepoResnCall("1", grd_ptnolist.row);
- break;
- case 14 : fExeSepoResnCall("2", grd_ptnolist.row);
- break;
- case 17 : fExeSepoResnCall("3", grd_ptnolist.row);
- break;
- }
- }
-
- /* @group : 세포결과일괄등록
- * @ver : 2007.10.19 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 전체 세포 결과예문 호출 처리 Function
- */
- function fExeSepoAllResnCall(pBizFlagCd, pRowNo)
- {
- var sRsltKind = "";
- var sScrnNm = "";
- var sScrnCd = "";
- var sBizFlagCd = "";
- var sRsltCnts = "";
- var sMCnts = "";
- var sCmtCnts = "";
- var sXmlNode = "";
- var sNode = "/root/init/seporesn";
- var sRsltNode = "/root/main/acptptno/acptptnolist";
-
- //----------------------
- if (pBizFlagCd == "1") // 1차인경우
- {
- sRsltKind = model.getValue("/root/init/sepoflagcd1");
- }
- else if (pBizFlagCd == "2") // 2차인경우
- {
- sRsltKind = model.getValue("/root/init/sepoflagcd2");
- }
- else // 3차
- {
- sRsltKind = model.getValue("/root/init/sepoflagcd3");
- }
-
- //----------------------------------------
- if (sRsltKind == "" || sRsltKind == "-") {
- messageBox("예문종류를 선택하여 주십시오! 예문을 호출", "E001");
- return false;
- }
-
- //------------------
- switch (sRsltKind)
- {
- case "1021" :
- case "10D2" :
- sScrnNm = "SPLPR01400";
- sScrnCd = "SPLPR01400";
- sBizFlagCd = pBizFlagCd
- break;
-
- //------------------
- // 비부인과 결과예문
- case "1022" :
- case "10B2" :
- case "10B3" :
- case "10D0" :
- sScrnNm = "SPLPR01500";
- sScrnCd = "SPLPR01500";
-
- //--------------------------------------
- if (pBizFlagCd == "1") sBizFlagCd = "4";
- if (pBizFlagCd == "2") sBizFlagCd = "5";
- if (pBizFlagCd == "3") sBizFlagCd = "6";
- break;
-
- //------------------
- // 세침흡인 결과예문
- case "1023" :
- sScrnNm = "SPLPR02700";
- sScrnCd = "SPLPR02700";
-
- //--------------------------------------
- if (pBizFlagCd == "1") sBizFlagCd = "7";
- if (pBizFlagCd == "2") sBizFlagCd = "8";
- if (pBizFlagCd == "3") sBizFlagCd = "9";
- break;
- }
- //------------------
- // 세포예문 초기화
- lpzfExeSePoResnInit("/root/init/seporesn1", "/root/init/seporesn2", "/root/init/seporesn3", "1"); // 부인과
- lpzfExeSePoResnInit("/root/init/seporesn4", "/root/init/seporesn5", "/root/init/seporesn6", "2"); // 비부인과
- lpzfExeSePoResnInit("/root/init/seporesn7", "/root/init/seporesn8", "/root/init/seporesn9", "3"); // 세침흡인
- model.makeValue(sNode+sBizFlagCd+"/dgflagcd", sBizFlagCd);
-
- //----------
- // 예문 호출
- setParameter("SMLPR00100_resnstate", "0");
-
- modal(sScrnNm, "", "", "", sScrnCd, sNode+sBizFlagCd, "/root/init/seporesn");
-
- //------------------------------------------------------------
- if (getParameter("SMLPR00100_resnstate") == "C") return false;
- //-------------------------------------------------------
- sRsltCnts = model.getValue(sNode+sBizFlagCd+"/seporslt");
- sCmtCnts = model.getValue(sNode+pBizFlagCd+"/cmtcnts");
- sMCnts = model.getValue(sNode+pBizFlagCd+"/mcnts");
- sXmlNode = instance1.selectSingleNode(sNode+sBizFlagCd+"/seporesninfo");
-
- //---------------------------------------------------------
- for (var iNo=1; iNo <= getNodesetCount(sRsltNode); iNo++)
- {
- if (model.getValue(sRsltNode+"["+iNo+"]/choi") == "true")
- {
- if (pBizFlagCd == "1")
- {
- model.makeValue(sRsltNode+"["+iNo+"]/testrslt1", sRsltCnts);
- model.makeValue(sRsltNode+"["+iNo+"]/rsltcnts4", "");
- model.setValue(sRsltNode+"["+iNo+"]/rsltcnts4", sXmlNode.xml, true);
- }
- else if (pBizFlagCd == "2")
- {
- model.makeValue(sRsltNode+"["+iNo+"]/readrslt", sRsltCnts);
- model.makeValue(sRsltNode+"["+iNo+"]/rsltcnts5", "");
- model.setValue(sRsltNode+"["+iNo+"]/rsltcnts5", sXmlNode.xml, true);
- }
- else
- {
- model.makeValue(sRsltNode+"["+iNo+"]/lastrslt", sRsltCnts);
- model.makeValue(sRsltNode+"["+iNo+"]/rsltcnts6", "");
- model.setValue(sRsltNode+"["+iNo+"]/rsltcnts6", sXmlNode.xml, true);
- }
-
- //-------------------------------------------------------
- //model.makeValue(sRsltNode+"["+iNo+"]/cmtcnts", sCmtCnts);
-
- //------------------------------------------------
- //진단 내용은 진단예문 작성시에만 M에다가 넣어 줌.
- //model.makeValue(sRsltNode+"["+iNo+"]/diagcd", sMCnts);
- if(pBizFlagCd == "3")
- {
- model.makeValue(sRsltNode+"["+iNo+"]/diagcnts", sMCnts);
- }
-
- //-------------------
- switch (pBizFlagCd)
- {
- case "1" :
- case "4" :
- case "7" :
- model.setValue(sRsltNode+"["+iNo+"]/sepo1mcnts", sMCnts);
- break;
-
- case "2" :
- case "5" :
- case "8" :
- model.setValue(sRsltNode+"["+iNo+"]/sepo2mcnts", sMCnts);
- break;
-
- case "3" :
- case "6" :
- case "9" :
- model.setValue(sRsltNode+"["+iNo+"]/sepo3mcnts", sMCnts);
- break;
- }
- }
- }
-
- //---------------------
- grd_ptnolist.rebuild();
- }
-
- /* @group : 세포결과일괄등록
- * @ver : 2007.10.19 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 세포 결과예문 호출 처리 Function
- */
- function fExeSepoResnCall(pBizFlagCd, pRowNo) {
- //var iRow = grd_ptnolist.row;
- var iRow = pRowNo;
- var sScrnNm = "";
- var sScrnCd = "";
- var sRsltCnts = "";
- var sRsltNo = pBizFlagCd;
- var sNode = "/root/init/seporesn";
- var sRsltNode = "/root/main/acptptno/acptptnolist";
- var sResnNode = "<?xml version='1.0' encoding='euc-kr'?>";
-
- var sWorkNode = "";
- var sRsltColNode1 = sRsltNode+"["+iRow+"]/testrslt1";
- var sRsltColNode2 = sRsltNode+"["+iRow+"]/readrslt";
- var sRsltColNode3 = sRsltNode+"["+iRow+"]/lastrslt";
- var sRsltColNode = "";
-
- //---------------------------------------------------------------
- switch (model.getValue(sRsltNode+"["+iRow+"]/statsworkflagcd"))
- {
- case "1021" :
- case "10D2" :
- sScrnNm = "SPLPR01400";
- sScrnCd = "SPLPR01400";
- break;
-
- case "1022" :
- case "10B2" :
- case "10B3" :
- case "10D0" :
- sScrnNm = "SPLPR01500";
- sScrnCd = "SPLPR01500";
-
- //----------------------
- if (pBizFlagCd == "1")
- {
- pBizFlagCd = "4";
- }
- else if (pBizFlagCd == "2")
- {
- pBizFlagCd = "5";
- }
- else
- {
- pBizFlagCd = "6";
- }
- break;
-
- case "1023" :
- sScrnNm = "SPLPR02700";
- sScrnCd = "SPLPR02700";
-
- //----------------------
- if (pBizFlagCd == "1")
- {
- pBizFlagCd = "7";
- }
- else if (pBizFlagCd == "2")
- {
- pBizFlagCd = "8";
- }
- else
- {
- pBizFlagCd = "9";
- }
- break;
- }
- //------------------
- // 세포예문 초기화
- lpzfExeSePoResnInit("/root/init/seporesn1", "/root/init/seporesn2", "/root/init/seporesn3", "1");
- lpzfExeSePoResnInit("/root/init/seporesn4", "/root/init/seporesn5", "/root/init/seporesn6", "2");
- lpzfExeSePoResnInit("/root/init/seporesn7", "/root/init/seporesn8", "/root/init/seporesn9", "3");
- //------------------
- // 세포 1차결과 예문
- if (pBizFlagCd == "1")
- {
- sRsltCnts = model.getValue(sRsltNode+"["+iRow+"]/rsltcnts4");
- sRsltColNode = sRsltColNode1;
-
- //------------------------------------------------------------
- if (sRsltCnts.getTrim() != "" && sRsltCnts.getTrim() != "-")
- {
- sResnNode += "<root>"+model.getValue(sRsltNode+"["+iRow+"]/rsltcnts4")+"</root>";
- iviewer1.window.instance1.loadXML(sResnNode);
- model.copyNode(root.init.seporesn1, iviewer1.window.instance1.selectSingleNode("/root"));
- }
- }
- else if (pBizFlagCd == "2")
- {
- sRsltCnts = model.getValue(sRsltNode+"["+iRow+"]/rsltcnts5");
- sRsltColNode = sRsltColNode2;
- //------------------------------------------------------------
- if (sRsltCnts.getTrim() != "" && sRsltCnts.getTrim() != "-")
- {
- sResnNode += "<root>"+model.getValue(sRsltNode+"["+iRow+"]/rsltcnts5")+"</root>";
- iviewer1.window.instance1.loadXML(sResnNode);
- model.copyNode(root.init.seporesn2, iviewer1.window.instance1.selectSingleNode("/root"));
- }
- }
- else if (pBizFlagCd == "3")
- {
- sRsltCnts = model.getValue(sRsltNode+"["+iRow+"]/rsltcnts6");
- sRsltColNode = sRsltColNode3;
- //------------------------------------------------------------
- if (sRsltCnts.getTrim() != "" && sRsltCnts.getTrim() != "-")
- {
- sResnNode += "<root>"+model.getValue(sRsltNode+"["+iRow+"]/rsltcnts6")+"</root>";
- iviewer1.window.instance1.loadXML(sResnNode);
- model.copyNode(root.init.seporesn3, iviewer1.window.instance1.selectSingleNode("/root"));
- }
- }
- else if (pBizFlagCd == "4")
- {
- sRsltCnts = model.getValue(sRsltNode+"["+iRow+"]/rsltcnts4");
- sRsltColNode = sRsltColNode1;
- //------------------------------------------------------------
- if (sRsltCnts.getTrim() != "" && sRsltCnts.getTrim() != "-")
- {
- sResnNode += "<root>"+model.getValue(sRsltNode+"["+iRow+"]/rsltcnts4")+"</root>";
- iviewer1.window.instance1.loadXML(sResnNode);
- model.copyNode(root.init.seporesn4, iviewer1.window.instance1.selectSingleNode("/root"));
- }
- }
- else if (pBizFlagCd == "5")
- {
- sRsltCnts = model.getValue(sRsltNode+"["+iRow+"]/rsltcnts5");
- sRsltColNode = sRsltColNode2;
-
- //------------------------------------------------------------
- if (sRsltCnts.getTrim() != "" && sRsltCnts.getTrim() != "-")
- {
- sResnNode += "<root>"+model.getValue(sRsltNode+"["+iRow+"]/rsltcnts5")+"</root>";
- iviewer1.window.instance1.loadXML(sResnNode);
- model.copyNode(root.init.seporesn5, iviewer1.window.instance1.selectSingleNode("/root"));
- }
- }
- else if (pBizFlagCd == "6")
- {
- sRsltCnts = model.getValue(sRsltNode+"["+iRow+"]/rsltcnts6");
- sRsltColNode = sRsltColNode3;
-
- //------------------------------------------------------------
- if (sRsltCnts.getTrim() != "" && sRsltCnts.getTrim() != "-")
- {
- sResnNode += "<root>"+model.getValue(sRsltNode+"["+iRow+"]/rsltcnts6")+"</root>";
- iviewer1.window.instance1.loadXML(sResnNode);
- model.copyNode(root.init.seporesn6, iviewer1.window.instance1.selectSingleNode("/root"));
- }
- }
- else if (pBizFlagCd == "7")
- {
- sRsltCnts = model.getValue(sRsltNode+"["+iRow+"]/rsltcnts4");
- sRsltColNode = sRsltColNode1;
-
- //------------------------------------------------------------
- if (sRsltCnts.getTrim() != "" && sRsltCnts.getTrim() != "-")
- {
- sResnNode += "<root>"+model.getValue(sRsltNode+"["+iRow+"]/rsltcnts4")+"</root>";
- iviewer1.window.instance1.loadXML(sResnNode);
- model.copyNode(root.init.seporesn7, iviewer1.window.instance1.selectSingleNode("/root"));
- }
- }
- else if (pBizFlagCd == "8")
- {
- sRsltCnts = model.getValue(sRsltNode+"["+iRow+"]/rsltcnts5");
- sRsltColNode = sRsltColNode2;
-
- //------------------------------------------------------------
- if (sRsltCnts.getTrim() != "" && sRsltCnts.getTrim() != "-")
- {
- sResnNode += "<root>"+model.getValue(sRsltNode+"["+iRow+"]/rsltcnts5")+"</root>";
- iviewer1.window.instance1.loadXML(sResnNode);
- model.copyNode(root.init.seporesn8, iviewer1.window.instance1.selectSingleNode("/root"));
- }
- }
- else if (pBizFlagCd == "9")
- {
- sRsltCnts = model.getValue(sRsltNode+"["+iRow+"]/rsltcnts6");
- sRsltColNode = sRsltColNode3;
-
- //------------------------------------------------------------
- if (sRsltCnts.getTrim() != "" && sRsltCnts.getTrim() != "-")
- {
- sResnNode += "<root>"+model.getValue(sRsltNode+"["+iRow+"]/rsltcnts6")+"</root>";
- iviewer1.window.instance1.loadXML(sResnNode);
- model.copyNode(root.init.seporesn9, iviewer1.window.instance1.selectSingleNode("/root"));
- }
- }
-
-
- //-------------------------------------------------------
- model.makeValue(sNode+pBizFlagCd+"/dgflagcd", pBizFlagCd);
- model.makeValue(sNode+pBizFlagCd+"/seporslt", model.getValue(sRsltColNode));
-
- //----------------------------------------
- setParameter("SMLPR00100_resnstate", "C");
-
- // 결과 예문 상단에 환자정보 출력
- setParameter("SMLPR00100_pid", model.getValue("/root/main/acptptno/acptptnolist[" + pRowNo + "]/pid") );
- setParameter("SMLPR00100_ptno", model.getValue("/root/main/acptptno/acptptnolist[" + pRowNo + "]/ptno") );
- setParameter("SMLPR00100_patnm", model.getValue("/root/main/acptptno/acptptnolist[" + pRowNo + "]/patnm") );
-
- modal(sScrnNm, "", "", "", sScrnCd, sNode+pBizFlagCd, "/root/init/seporesn");
-
- //------------------------------------------------------------
- if (getParameter("SMLPR00100_resnstate") == "C") return false;
-
- model.makeValue(sRsltColNode, model.getValue(sNode+pBizFlagCd+"/seporslt"));
- //model.makeValue(sRsltNode+"["+iRow+"]/cmtcnts", model.getValue(sNode+pBizFlagCd+"/cmtcnts"));
- //model.makeValue(sRsltNode+"["+iRow+"]/diagcnts", model.getValue(sNode+pBizFlagCd+"/mcnts"));
- sNode1 = instance1.selectSingleNode(sNode+pBizFlagCd+"/seporesninfo");
-
- //--------------------
- switch (pBizFlagCd)
- {
- case "1" :
- case "4" :
- case "7" :
- model.makeValue(sRsltNode+"["+iRow+"]/rsltcnts4", "");
- model.setValue(sRsltNode+"["+iRow+"]/rsltcnts4", sNode1.xml, true);
- model.makeValue(sRsltNode+"["+iRow+"]/sepo1mcnts", model.getValue(sNode+pBizFlagCd+"/mcnts"));
- break;
-
- case "2" :
- case "5" :
- case "8" :
- model.makeValue(sRsltNode+"["+iRow+"]/rsltcnts5", "");
- model.setValue(sRsltNode+"["+iRow+"]/rsltcnts5", sNode1.xml, true);
- model.makeValue(sRsltNode+"["+iRow+"]/sepo2mcnts", model.getValue(sNode+pBizFlagCd+"/mcnts"));
- break;
-
- case "3" :
- case "6" :
- case "9" :
- model.makeValue(sRsltNode+"["+iRow+"]/rsltcnts6", "");
- model.setValue(sRsltNode+"["+iRow+"]/rsltcnts6", sNode1.xml, true);
- model.makeValue(sRsltNode+"["+iRow+"]/sepo3mcnts", model.getValue(sNode+pBizFlagCd+"/mcnts"));
- model.makeValue(sRsltNode+"["+iRow+"]/diagcnts", model.getValue(sNode+pBizFlagCd+"/mcnts"));
- model.makeValue(sRsltNode+"["+iRow+"]/diagcd", "");
- break;
- }
-
- //---------------------
- grd_ptnolist.refresh();
- }
-
- /* @group : 세포결과일괄등록
- * @ver : 2007.10.29 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 세포 결과예문 호출 처리 Function
- */
- function fExeExmpChoi(pBizFlagCd) {
-
- var sCode1 = "";
- var sCode2 = "";
- var sRsltFlagCd = "";
- var sNode = "/root/main/acptptno/acptptnolist";
-
- //----------------------
- if (pBizFlagCd == "1") {
- sRsltFlagCd = model.getValue("/root/init/sepoflagcd1");
- } else {
- sRsltFlagCd = model.getValue("/root/init/sepoflagcd2");
- }
-
- //--------------------------
- if (sRsltFlagCd == "1021") {
- sCode1 = "1021";
- sCode2 = "1021";
- } else {
- sCode1 = "1022";
- sCode2 = "1023";
- }
-
- //----------------------------------------------------------------------------------
- for (var iNo=1; iNo <= getNodesetCount("/root/main/acptptno/acptptnolist"); iNo++) {
-
- if (model.getValue(sNode+"["+iNo+"]/statsworkflagcd") == sCode1
- || model.getValue(sNode+"["+iNo+"]/statsworkflagcd") == sCode2
- || model.getValue(sNode+"["+iNo+"]/statsworkflagcd") == "10B2"
- || model.getValue(sNode+"["+iNo+"]/statsworkflagcd") == "10B3") {
- model.setValue(sNode+"["+iNo+"]/choi", "true");
- }
- }
- }
-
- /* @group : 세포결과일괄등록
- * @ver : 2008.01.18 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 처방의뢰지 팝업창 호출 처리 Function
- */
- function fExeReqFrmInfo() {
-
- var sNode = "/root/init/testinfo/testcdlist";
-
- //--------------------------------
- model.removeNodeset("/root/send");
- model.removeNodeset(sNode);
-
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/ptno", "'"+model.getValue("/root/main/acptptno/acptptnolist["+grd_ptnolist.row+"]/ptno")+"'");
- submit("TRLPZ00106");
-
-
- var sPid = model.getValue("/root/main/acptptno/acptptnolist["+grd_ptnolist.row+"]/pid");
- var sTestCd = model.getValue(sNode+"[1]/testcd");
- var sTestNm = model.getValue(sNode+"[1]/testnm");
- var sReqFrmCd = model.getValue(sNode+"[1]/reqfrmflagcd");
- var sReqFrmNo = model.getValue(sNode+"[1]/reqfrmno");
- var sSpdCd = model.getValue(sNode+"[1]/spccd");
- var sSpcNm = model.getValue(sNode+"[1]/spcnm");
-
- lpzfExeReqFrmInfo2(sReqFrmCd, sReqFrmNo, sTestCd, sTestNm, sSpdCd, sSpcNm, sPid);
- }
-
- /* @group : 세포결과일괄등록
- * @ver : 2008.01.18 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : CF(이전결과) 팝업창 호출 처리 Function
- */
- function fExeCFInfo() {
- setParameter("SPLPR00400_instcd", getUserInfo("dutplceinstcd"));
- setParameter("SPLPR00400_pid", model.getValue("/root/main/acptptno/acptptnolist["+grd_ptnolist.row+"]/pid"));
- modal("SPLPR01800", "", "", "", "SPLPR01800", "", "");
- }
-
- /* @group : 세포결과일괄등록
- * @ver : 2008.06.09 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 세포사용자 선택 처리 Function
- */
- function fExeSepoUserChoi(pBizFlagCd) {
-
- var sNode = "/root/main/acptptno/acptptnolist";
- var iMaxRowCnt = getNodesetCount("/root/main/acptptno/acptptnolist");
-
- //------------------------------------------
- for (var iNo=1; iNo <= iMaxRowCnt; iNo++) {
-
- if (model.getValue(sNode+"["+iNo+"]/choi") == "true") {
-
- if (pBizFlagCd == "1") {
- model.setValue(sNode+"["+iNo+"]/celluserid", model.getValue("/root/init/sepouser1"));
- } else if (pBizFlagCd == "2") {
- model.setValue(sNode+"["+iNo+"]/readdrid1", model.getValue("/root/init/sepouser2"));
- } else if (pBizFlagCd == "3") {
- model.setValue(sNode+"["+iNo+"]/lastdrid", model.getValue("/root/init/sepouser3"));
- }
- }
- }
-
- //---------------------
- grd_ptnolist.refresh();
- }
-
- /* @group : 세포결과일괄등록
- * @ver : 2008.06.09 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 검사결과 확대창 처리 Function
- */
- function fExeRsltView() {
-
- //--------------------------
- switch (grd_ptnolist.col) {
- case 9 : model.setValue("/root/init/rsltview", model.getValue("/root/main/acptptno/acptptnolist["+grd_ptnolist.row+"]/testrslt1"));
- break;
- case 14 : model.setValue("/root/init/rsltview", model.getValue("/root/main/acptptno/acptptnolist["+grd_ptnolist.row+"]/readrslt"));
- break;
- case 16 : model.setValue("/root/init/rsltview", model.getValue("/root/main/acptptno/acptptnolist["+grd_ptnolist.row+"]/lastrslt"));
- break;
- }
-
- //---------------------
- tar_rsltview.refresh();
- grp_rsltview.visible = true;
- }
-
- /* @group : 세포결과일괄등록
- * @ver : 2008.06.09 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 진단코드 검색 팝업창 호출 처리 Function
- */
- function fExeDiagPopup(pRow) {
-
- var sNode = "/root/main/acptptno/acptptnolist";
- var sDiagNm = model.getValue(sNode+ "[" + grd_ptnolist.row + "]/diagcnts");
- var sDiagInfo = "";
-
- //--------------------------------------------
- // 영문,숫자, 한글일때는 3글자 넣어야 검색가능
- if ( sDiagNm.length < 2 ) {
- messageBox ( "2글자 이상", "C001" );
- return;
- }
- //-----------------------------------------
- setParameter("SPMMO00800_cond1", "2" ); // 첫단어검색을 먼저하는 것으로 수정한다.(1:코드검색)
- setParameter("SPMMO00800_cond2", "3"); // 명칭검색구분(1:코드, 2:단어, 3:문장, 4:첫단어)
- setParameter("SPMMO00800_cond3", "E" ); // 한영구분(H: 한글, E:영문)
- setParameter("SPMMO00800_cond4", getCurrentDate()); // 기준일자: 외래일때는 진료일자, 입원일때는 처방일자
- setParameter("SPMMO00800_cond5", sDiagNm ); // 검색내용
- setParameter("SPMMO00800_rtn", "" ); // 반환값
- setParameter("SPMMO00800_rtn_useyn", sDiagNm ); // 검색내용
-
- modal ( "SPMMO00800", null, null, null, "diagsrch", "", "", "", false );
- if ( getParameter( "SPMMO00800_rtn_useyn" ) == "Y" ) {
-
- //-------------------------------------------
- sDiagInfo = getParameter( "SPMMO00800_rtn" );
- var icd10cd = fExeGetArrayData( sDiagInfo, 1, 8, "▩", "▦" );
- var diagcd = fExeGetArrayData( sDiagInfo, 1, 9, "▩", "▦" );
- var diagengnm = fExeGetArrayData( sDiagInfo, 1, 2, "▩", "▦" );
- var diaghngnm = fExeGetArrayData( sDiagInfo, 1, 3, "▩", "▦" );
- var spclinfo = fExeGetArrayData( sDiagInfo, 1, 5, "▩", "▦" );
-
- //-------------------------------------------
- model.setValue(sNode+ "[" + grd_ptnolist.row + "]/diagcnts", diagengnm);
- model.setValue(sNode+ "[" + grd_ptnolist.row + "]/diagcd", diagcd);
-
- //-----------------------------------------
- setParameter( "SPMMO00800_rtn_useyn", "" );
- }
- }
-
- function fExeGetArrayData (pData, pRow, pCol, pRowSep, pColSep ) {
- var arrRow = pData.split(pRowSep);
-
- if(arrRow.length <= pRow) return "";
- var arrCol = arrRow[pRow].split(pColSep);
- if(arrCol.length <= pCol) return "";
- return arrCol[pCol];
- }
-
- /* @group : 세포결과일괄등록
- * @ver : 2008.12.04 (CMCDEV-0001)
- * @by : 하만석(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 결과항목을 확인하기 위해서 row 크기 변경
- */
- function fExeResizeRow()
- {
- if (gRowSize == 0) // 초기상태
- {
- grd_ptnolist.autoResize = true;
- grd_ptnolist.refresh();
- gRowSize = 1;
- }
- else if (gRowSize == 1)
- {
- grd_ptnolist.dataHeight = 25;
- grd_ptnolist.autoResize = false;
- grd_ptnolist.refresh();
- gRowSize = 0;
- }
- }
-
- /* @group : 세포결과일괄등록
- * @ver : 2010.07.21 (CMCDEV-0001)
- * @by : 이선우
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 해당 차수의 결과를 읽어서 진단내용 생성
- */
-
- function fExeSepoMcnts(pBizFlagCd, pRowNo) {
-
- var sNode = "/root/main/acptptno/acptptnolist";
- var sRsltNode = "/root/temp/rsltcnts";
- var sMcnts = "";
- var sExmpcdNode = "/root/init/exmpcd_8000/exmpcdlist";
- var sExmpcdCmmt = "880000";
-
- var sRsltCnts = "";
-
- switch (model.getValue(sNode+"["+pRowNo+"]/statsworkflagcd")) {
- case "1021" :
- case "10D2" :
-
- sExmpcdNode = "/root/init/exmpcd_8000/exmpcdlist"; // 부인과예문
- sExmpcdCmmt = "880000";
-
- break;
-
- case "1022" :
- case "1023" :
- case "10B2" :
- case "10B3" :
- case "10D0" :
-
- sExmpcdNode = "/root/init/exmpcd_9000/exmpcdlist"; // 비부인과예문
- sExmpcdCmmt = "980000";
-
- break;
- }
-
-
- switch (pBizFlagCd) {
- case "1" :
-
- sRsltCnts = model.getValue(sNode +"["+ pRowNo +"]/rsltcnts4");
-
- if (sRsltCnts.getTrim() != "" && sRsltCnts.getTrim() != "-") {
- sRsltCnts = "<?xml version='1.0' encoding='euc-kr'?><root>"+ sRsltCnts + "</root>";
- ivwTemp.window.instance1.loadXML(sRsltCnts);
- model.copyNode(sRsltNode, ivwTemp.window.instance1.selectSingleNode("/root"));
- }
-
- for (var i = getNodesetCount(sExmpcdNode); i >= 1; i--) {
- // Comment 제외
- if (Number(model.getValue(sExmpcdNode +"["+ i +"]/exmpcd")) > sExmpcdCmmt) {
- // Continue
- } else {
- if (model.getValue(sRsltNode + "/seporesninfo/val" + model.getValue(sExmpcdNode +"["+ i +"]/exmpcd")) == "1" &&
- model.getValue(sExmpcdNode + "["+ i +"]/exmpcd") == "925000" ) {
- sMcnts = model.getValue( sRsltNode + "/seporesninfo/nm" + model.getValue(sExmpcdNode + "[" + i + "]/exmpcd"));
- break;
- }
- }
- }
-
- break;
-
- case "2" :
-
- sRsltCnts = model.getValue(sNode +"["+ pRowNo +"]/rsltcnts5");
-
- if (sRsltCnts.getTrim() != "" && sRsltCnts.getTrim() != "-") {
- sRsltCnts = "<?xml version='1.0' encoding='euc-kr'?><root>"+ sRsltCnts + "</root>";
- ivwTemp.window.instance1.loadXML(sRsltCnts);
- model.copyNode(sRsltNode, ivwTemp.window.instance1.selectSingleNode("/root"));
- }
-
- for (var i = getNodesetCount(sExmpcdNode); i >= 1; i--) {
- // Comment 제외
- if (Number(model.getValue(sExmpcdNode +"["+ i +"]/exmpcd")) > sExmpcdCmmt) {
- // Continue
- } else {
- if (model.getValue(sRsltNode + "/seporesninfo/val" + model.getValue(sExmpcdNode +" ["+ i +"]/exmpcd")) == "1" &&
- model.getValue(sExmpcdNode + "["+ i +"]/exmpcd") != "925000" ) {
- sMcnts = model.getValue( sRsltNode + "/seporesninfo/nm" + model.getValue(sExmpcdNode + "[" + i + "]/exmpcd"));
- break;
- }
- }
- }
-
- break;
-
- case "3" :
-
- sRsltCnts = model.getValue(sNode +"["+ pRowNo +"]/rsltcnts4");
-
- if (sRsltCnts.getTrim() != "" && sRsltCnts.getTrim() != "-") {
- sRsltCnts = "<?xml version='1.0' encoding='euc-kr'?><root>"+ sRsltCnts + "</root>";
- ivwTemp.window.instance1.loadXML(sRsltCnts);
- model.copyNode(sRsltNode, ivwTemp.window.instance1.selectSingleNode("/root"));
- }
-
- for (var i = getNodesetCount(sExmpcdNode); i >= 1; i--) {
- // Comment 제외
- if (Number(model.getValue(sExmpcdNode +"["+ i +"]/exmpcd")) > sExmpcdCmmt) {
- // Continue
- } else {
- if (model.getValue(sRsltNode + "/seporesninfo/val" + model.getValue(sExmpcdNode + "["+ i +"]/exmpcd")) == "1" &&
- model.getValue(sExmpcdNode + "["+ i +"]/exmpcd") != "925000" ) {
- sMcnts = model.getValue( sRsltNode + "/seporesninfo/nm" + model.getValue(sExmpcdNode + "[" + i + "]/exmpcd"));
- break;
- }
- }
- }
-
- break;
- }
-
- return sMcnts;
-
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body>
- <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_biz" style="left:0; top:40; width:1195; height:744; ">
- <caption id="caption4" class="tit_2" style="left:5px; top:55px; width:170px; height:13px; ">병리번호 목록</caption>
- <line id="line3" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
- <datagrid id="grd_ptnolist" nodeset="/root/main/acptptno/acptptnolist" class="datagrid2" caption="선
택^기관코드^ptno^병리번호^접수일자^등록번호^환자명^세포병리사^1차
스크리너^1차결과^판독의사1^2차
스크리너^판독의사2^판독의사2^2차결과^2차결과^판독의사^진단^진단^결과상태^rsltrgstdd^rsltrgstno^cellrgstdd^cellrgstno^doctrgstdd^doctrgstno^testresn1^testresn2^statsworkflagcd^caption1^caption2^진단(M)^caption3^^Other^등급^WARDCD^age^의뢰지번호^의뢰지구분코드^rsltcnts6^readid^sepo1mcnts^sepo2mcnts^sepo3mcnts^cellrsltrgstid" colsep="^" colwidth="34, 0, 0, 80, 70, 70, 70, 0, 70, 100, 0, 70, 0, 0, 100, 20, 70, 100, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 157, 0, 19, 82, 40, 100, 100, 0, 0, 0, 0, 0, 0, 0, 0" dataheight="25" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheight="32" rowsep="|" navindex="6" style="left:0px; top:75px; width:1194px; height:665px; x1:0px; ">
- <col ref="choi" type="checkbox"/>
- <col ref="instcd"/>
- <col ref="ptno"/>
- <col ref="dispptno"/>
- <col class="text_center" ref="acptdd" format="yyyy-mm-dd" mask="exclude" showmask="true"/>
- <col class="text_center" ref="pid"/>
- <col class="text_center" ref="patnm"/>
- <col ref="cellusernm"/>
- <col itemcount="15" ref="celluserid" type="combo">
- <choices>
- <itemset nodeset="/root/init/screenerlist/screenerinfo[screenflag='1']">
- <label ref="usernm"/>
- <value ref="resncnts"/>
- </itemset>
- </choices>
- </col>
- <col editable="false" ref="testrslt1" type="inputbutton"/>
- <col class="text_center" ref="readdrnm1"/>
- <col itemcount="15" ref="readdrid1" type="combo">
- <choices>
- <itemset nodeset="/root/init/screenerlist/screenerinfo[screenflag='2']">
- <label ref="usernm"/>
- <value ref="resncnts"/>
- </itemset>
- </choices>
- </col>
- <col class="text_center" ref="readdrnm2"/>
- <col ref="readdrid2" type="combo">
- <choices>
- <itemset nodeset="/root/init/userinfo/userinfolist[jobkindcd='1']">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- </col>
- <col editable="false" ref="readrslt" type="inputbutton"/>
- <col ref="dummy1" style="background-image:../../../com/commonweb/images/icon_list.gif; "/>
- <col itemcount="15" ref="lastdrid" type="combo">
- <choices>
- <itemset nodeset="/root/init/userinfo/userinfolist[jobkindcd='1']">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- </col>
- <col ref="lastrslt" type="inputbutton"/>
- <col ref="dummy2" style="background-image:../../../com/commonweb/images/icon_list.gif; "/>
- <col ref="rsltstat"/>
- <col ref="rsltrgstdd"/>
- <col ref="rsltrgstno"/>
- <col ref="cellrgstdd"/>
- <col ref="cellrgstno"/>
- <col ref="doctrgstdd"/>
- <col ref="doctrgstno"/>
- <col ref="rsltcnts4"/>
- <col ref="rsltcnts5"/>
- <col ref="statsworkflagcd"/>
- <col ref="extrpartcd"/>
- <col ref="extrmthdcd"/>
- <col ref="diagcnts" type="input"/>
- <col ref="diagcd"/>
- <col ref="dummy3" style="background-image:../../../com/commonweb/images/icon_list.gif; "/>
- <col ref="cmtcnts" type="input"/>
- <col ref="readgrade" type="input" maxlength="3"/>
- <col ref="wardcd" visibility="hidden"/>
- <col ref="age" visibility="hidden"/>
- <col ref="reqfrmno"/>
- <col ref="reqfrmflagcd"/>
- <col ref="rsltcnts6"/>
- <col ref="readid"/>
- <col ref="sepo1mcnts"/>
- <col ref="sepo2mcnts"/>
- <col ref="sepo3mcnts"/>
- <col ref="cellrsltrgstid"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fExeGridClick(grd_ptnolist.col, grd_ptnolist.row);
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_ptnolist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- fExeResnChoi();
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- setPopupMenu("grd_ptnolist", false, "/root/init/popupmenu/item", "nm", "funt");
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- initPopupMenu();
- ]]>
- </script>
- </datagrid>
- <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:1093px; y1:7px; x2:1093px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption7" class="search_name" style="left:16px; top:9px; width:86px; height:17px; ">접수일자 :</caption>
- <input id="ipt_acpttodd" ref="/root/hidden/acpttodd" class="input_search" navindex="2" inputtype="date" style="left:214px; top:8px; width:90; height:19px; text-align:center; vertical-align:middle; "/>
- <caption id="caption8" class="search_no_b" style="left:200px; top:8px; width:12px; height:17px; ">~</caption>
- <caption id="caption9" class="search_name" style="left:881px; top:9px; width:86px; height:17px; ">검색방법 :</caption>
- <input id="ipt_acptfromdd" ref="/root/hidden/acptfromdd" class="input_search" navindex="1" inputtype="date" style="left:108px; top:8px; width:90; height:19px; text-align:center; vertical-align:middle; "/>
- <button id="btn_search" class="btn1_letter2" navindex="5" style="left:1113px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetCellPtNoList();
- ]]>
- </script>
- </button>
- <select id="chb_workflagcd" ref="/root/init/workflagcd" navindex="3" overflow="visible" appearance="full" cellspacing="30" cols="10" style="left:480px; top:10px; width:315px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/resncd/resncdlist[resncd='1021' or resncd='1022' or resncd='1023' or resncd='1024']">
- <label ref="resncnts"/>
- <value ref="resncd"/>
- </itemset>
- </choices>
- </select>
- <caption id="caption3" class="search_name" style="left:390px; top:9px; width:86px; height:17px; ">작업구분 :</caption>
- <select1 id="cmb_rsltdg" ref="/root/hidden/rsltdg" navindex="4" appearance="minimal" style="left:973px; top:8px; width:100px; height:19px; background-color:#ffffff; ">
- <choices>
- <item>
- <label>접수</label>
- <value>0</value>
- </item>
- <item>
- <label>1차결과</label>
- <value>1</value>
- </item>
- <item>
- <label>2차결과</label>
- <value>2</value>
- </item>
- <item>
- <label>전체</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- </group>
- <button id="btn_exmp1" navindex="9" style="left:497px; top:52px; width:14px; height:16px; background-image:../../../com/commonweb/images/icon_list.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeSepoAllResnCall("1", 0);
- ]]>
- </script>
- </button>
- <button id="btn_exmp2" navindex="14" style="left:704px; top:52px; width:14px; height:16px; background-image:../../../com/commonweb/images/icon_list.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeSepoAllResnCall("2", 0);
- ]]>
- </script>
- </button>
- <iviewer id="iviewer1" visibility="hidden" src="SPLPR01300_viewer.xrw" style="left:180px; top:50px; width:65px; height:15px; border-style:sunken; "/>
- <button id="btn_fstcopy" class="btn2_letter5" navindex="12" style="left:942px; top:50px; width:75px; height:19px; ">
- <caption>
- <![CDATA[1차 -> 2차]]>
- </caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeRsltCopy("1", 0);
- ]]>
- </script>
- </button>
- <button id="btn_scndcopy" class="btn2_letter6" navindex="15" style="left:1019px; top:50px; width:86px; height:19px; ">
- <caption>
- <![CDATA[2차 -> 최종]]>
- </caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeRsltCopy("2", 0);
- ]]>
- </script>
- </button>
- <select1 id="cmb_sepo1" ref="/root/init/sepouser1" appearance="minimal" style="left:325px; top:50px; width:70px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/screenerlist/screenerinfo[screenflag='1']">
- <label ref="usernm"/>
- <value ref="resncnts"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fExeSepoUserChoi("1");
- ]]>
- </script>
- </select1>
- <select1 id="cmb_sepo2" ref="/root/init/sepouser2" appearance="minimal" style="left:530px; top:50px; width:70px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/screenerlist/screenerinfo[screenflag='2']">
- <label ref="usernm"/>
- <value ref="resncnts"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fExeSepoUserChoi("2");
- ]]>
- </script>
- </select1>
- <group id="grp_rsltview" visibility="hidden" style="left:195px; top:160px; width:755px; height:500px; ">
- <button id="btn_exit" class="btn4_letter2" navindex="8" style="left:698px; top:477px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_rsltview.visible = false;
- model.setValue("/root/init/rsltview", "");
- tar_rsltview.refresh();
- ]]>
- </script>
- </button>
- <textarea id="tar_rsltview" ref="/root/init/rsltview" style="left:0px; top:0px; width:754px; height:475px; "/>
- </group>
- <select1 id="cmb_resn1" ref="/root/init/sepoflagcd1" navindex="7" appearance="minimal" style="left:396px; top:50px; width:99px; height:19px; ">
- <choices>
- <item>
- <label>부인과예문</label>
- <value>1021</value>
- </item>
- <item>
- <label>비부인과예문</label>
- <value>1022</value>
- </item>
- <item>
- <label>세침흡인예문</label>
- <value>1023</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fExeExmpChoi("1");
- ]]>
- </script>
- </select1>
- <select1 id="cmb_resn2" ref="/root/init/sepoflagcd2" navindex="10" appearance="minimal" style="left:602px; top:50px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>부인과예문</label>
- <value>1021</value>
- </item>
- <item>
- <label>비부인과예문</label>
- <value>1022</value>
- </item>
- <item>
- <label>세침흡인예문</label>
- <value>1023</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fExeExmpChoi("2");
- ]]>
- </script>
- </select1>
- <button id="button1" navindex="13" style="left:920px; top:52px; width:14px; height:16px; background-image:../../../com/commonweb/images/icon_list.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeSepoAllResnCall("3", 0);
- ]]>
- </script>
- </button>
- <select1 id="cmb_resn3" ref="/root/init/sepoflagcd3" navindex="11" appearance="minimal" style="left:815px; top:50px; width:103px; height:19px; ">
- <choices>
- <item>
- <label>부인과예문</label>
- <value>1021</value>
- </item>
- <item>
- <label>비부인과예문</label>
- <value>1022</value>
- </item>
- <item>
- <label>세침흡인예문</label>
- <value>1023</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fExeExmpChoi("3");
- ]]>
- </script>
- </select1>
- <button id="btn_lastcopy" class="btn2_letter6" navindex="16" style="left:1107px; top:50px; width:86px; height:19px; ">
- <caption>
- <![CDATA[1차 -> 최종]]>
- </caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeRsltCopy("3", 0);
- ]]>
- </script>
- </button>
- <select1 id="cmb_sepo3" ref="/root/init/sepouser3" appearance="minimal" style="left:743px; top:50px; width:70px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/userinfo/userinfolist[jobkindcd='1']">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fExeSepoUserChoi("3");
- ]]>
- </script>
- </select1>
- <group id="grp_showrslt" visibility="hidden" style="left:690px; top:190px; width:475px; height:306px; ">
- <textarea id="textarea1" ref="/root/main/ncharrslt" editable="false" style="left:0px; top:5px; width:470px; height:270px; font-family:굴림체; font-size:9pt; "/>
- <line id="line1" class="line_1" style="x1:0px; y1:0; x2:470px; y2:0; "/>
- <button id="btn_rsltclose" class="btn4_letter2" navindex="8" style="left:415px; top:276px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_showrslt.visible = false;
- ]]>
- </script>
- </button>
- <line id="line2" class="line_1" style="x1:0px; y1:300px; x2:470px; y2:300px; "/>
- </group>
- <button id="btn_grdresize" class="btn2_letter3" visibility="visible" style="left:270px; top:50px; width:53px; height:19px; ">
- <caption>확 장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeResizeRow();
- ]]>
- </script>
- </button>
- <iviewer id="ivwTemp" visibility="hidden" src="SPLPR01300_viewer.xrw" style="left:180px; top:50px; width:65px; height:15px; border-style:sunken; "/>
- </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="button13" class="btn6_letter2" style="left:5px; top:3px; width:92px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- exeReportPreview("RPLPR00400", "XMLSTR", "/root/main/acptptno");
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" navindex="17" style="left:1138px; top:3; width:68px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeCellRsltSave();
- ]]>
- </script>
- </button>
- <button id="button2" class="btn6_letter5" style="left:63px; top:3px; width:92px; height:22px; ">
- <caption>EXCEL저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- lpzfExeSaveToExcel(grd_ptnolist, "세포결과 일괄등록");
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|