123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- * 제 목 : SMLMR00600_미생물결과일괄보고.xrw
- * 설 명 : 미생물결과일괄보고
- * 설 계 자 : (주)에이씨케이 - 윤재한
- * 작 성 자 : (주)에이씨케이 -
- * 작 성 일 : 2007.09.17
- * 수정이력 :
- * 기 타 :
- -->
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>미생물 결과 Confirm</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root>
- <main>
- <getbatchrpt>
- <chk/>
- <acptdt/>
- <rsltdt/>
- <pid/>
- <patnm/>
- <sexage/>
- <orddeptnm/>
- <tclsnm/>
- <inptrslt/>
- <wardroom/>
- <workno/>
- <bcno/>
- <testcd/>
- <sectcd/>
- <tsectcd/>
- <tsectcd/>
- <testcontcd/>
- <testcont/>
- <spccd/>
- <spcnm/>
- <nocnt/>
- </getbatchrpt>
- <getResultDetail>
- <reptrslt/>
- </getResultDetail>
- <getuserAnm>
- <acceptnm/>
- </getuserAnm>
- <testinfo>
- <testcont/>
- </testinfo>
- <cmt>
- <testcontcd/>
- <testcont/>
- <cmtrsltstat/>
- <bcno/>
- <sectcd/>
- <tsectcd/>
- <testcontcdnm/>
- </cmt>
- <selbcno/>
- <getreferencelist>
- <gumsa/>
- </getreferencelist>
- </main>
- <send>
- <usdd/>
- <uedd/>
- <growth/>
- <bcno/>
- <testcd/>
- <tclsnm/>
- <rslt/>
- <batchdata/>
- <pid/>
- <prcpdd/>
- <iogbn/>
- <codeflag/>
- <ddflag/>
- <tclscdlist/>
- <ward/>
- <workno/>
- <acceptid/>
- <data1/>
- <remark/>
- </send>
- <init/>
- <hidden>
- <ref>
- <tclscdlist>
- <tclscdlist/>
- <tclsnmlist/>
- <tclscdlist2/>
- <testgrup/>
- </tclscdlist>
- <refflag/>
- <ioflag/>
- <ward/>
- </ref>
- <usdd/>
- <uedd/>
- <growth>0</growth>
- <rtnid/>
- <testcont>
- <tsectcd/>
- <testcontcd/>
- </testcont>
- <testconttsectcd>
- <cd/>
- <nm/>
- </testconttsectcd>
- <add>1</add>
- <newline>1</newline>
- <refflag>
- <searchtext/>
- <searchflag>1</searchflag>
- <testlrgkind>M</testlrgkind>
- <rsltstat/>
- <bcno/>
- <testcont/>
- <testcontcd/>
- <p_isedit/>
- <userid/>
- </refflag>
- <remark>0</remark>
- </hidden>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fSetInit();
- ]]>
- </script>
- <submission id="TRLMR00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/getbatchrpt"/>
- <submission id="TXLMR00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- <submission id="TRLZZ00107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/prcpinfo"/>
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/LB0103"/>
- <submission id="TRLLF90401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/testgrupdetl"/>
- <submission id="TRLMP00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" add="bottom" resultref="/root/main/getResultDetail"/>
- <submission id="TRLBT10404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/getuserAnm"/>
- <submission id="TRLMR00603" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/getbatchrpt"/>
- <submission id="TXLMR00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/properties"/>
- </model>
- <script type="javascript">
- <![CDATA[
- //초기화
- function fSetInit(ref) {
- if(ref != 2) {
- var today = getCurrentDate();
-
- model.setValue("/root/hidden/usdd", today);
- model.setValue("/root/hidden/uedd", today);
- model.setValue("/root/hidden/growth", "0");
- model.setValue("/root/hidden/ref/refflag", "1");
- model.setValue("/root/hidden/ref/ioflag", "0");
- model.setValue("/root/hidden/ref/ward", "000000");
- model.setValue("/root/hidden/ref/tclscdlist/tclsnmlist", "");
- model.setValue("/root/hidden/ref/tclscdlist/testgrup", "");
-
- model.removeNodeset("/root/main/getbatchrpt");
- model.removeNodeset("/root/main/getunityrslt");
-
- grd_batchrpt.fixedcellcheckbox(0, 1) = true;
- }
- model.removeNodeset("/root/init");
-
- model.setValue("/root/send/codeflag", "0106|0103|0114|0000|0210|"); // 0103 검사그룹
- submit("TRLZZ00101");
-
- fCMTPCD_ChangeNodeset();
- model.refresh();
- }
-
- //검사그룹조회
- function fSelectTestGrup(){
-
- model.makeValue("/root/send/testgrupnm", cmb_tclscd.label);
- submit("TRLLF90401" ,false);
-
-
- fSetPopUpTclscdList();
- }
-
- function fSetPopUpTclscdList(){
- var count = getNodesetCount("/root/main/testgrupdetl");
- if(count > 0){
-
- var sendtclsnm = model.getValue("/root/main/testgrupdetl[1]/tclsnm");
- var sendtclscd = model.getValue("/root/main/testgrupdetl[1]/tclscd");
- var sendtclscd2 = model.getValue("/root/main/testgrupdetl[1]/tclscd");
-
-
- // 검사그룹 상세 목록 없을때
- if(sendtclsnm == ""){
- model.setValue("/root/hidden/tclscdlist/tclscdlist", "");
- model.setValue("/root/hidden/tclscdlist/tclsnmlist", "");
-
- }else{ // 검사그룹 상세 목록 있을때
- for(i=2; i<= count; i++){
- sendtclsnm = sendtclsnm + ", " + model.getValue("/root/main/testgrupdetl["+i+"]/tclsnm");
- //sendtclscd = sendtclscd + "▦" + model.getValue("/root/main/testgrupdetl["+i+"]/tclscd");
- sendtclscd = sendtclscd + "','" + model.getValue("/root/main/testgrupdetl["+i+"]/tclscd");
- sendtclscd2 = sendtclscd2 + "▦" + model.getValue("/root/main/testgrupdetl["+i+"]/tclscd");
- }
- model.setValue("/root/hidden/ref/tclscdlist/tclsnmlist", sendtclsnm);
- model.setValue("/root/hidden/ref/tclscdlist/tclscdlist", "'" + sendtclscd + "'");
- model.setValue("/root/hidden/ref/tclscdlist/tclscdlist2", sendtclscd2);
-
- }
- model.refresh();
- }
- }
-
- // 검사항목 지웠을때
- function fSetTclscdClean(){
- model.setValue("/root/hidden/ref/tclscdlist/tclscdlist", "");
- }
-
- //조회
- function fGetBatchRpt() {
- grd_batchrpt.fixedcellischeck(0, 1) = false;
- model.removeNodeset("/root/main/getunityrslt");
- model.setValue("/root/send/ddflag", model.getValue("/root/hidden/ref/refflag"));
- model.setValue("/root/send/usdd", model.getValue("/root/hidden/usdd"));
- model.setValue("/root/send/uedd", model.getValue("/root/hidden/uedd"));
- model.setValue("/root/send/growth", model.getValue("/root/hidden/growth"));
- model.setValue("/root/send/iogbn", model.getValue("/root/hidden/ref/ioflag"));
- model.setValue("/root/send/ward", model.getValue("/root/hidden/ref/ward"));
- model.setValue("/root/send/tclscdlist", model.getValue("/root/hidden/ref/tclscdlist/tclscdlist"));
- /*이재오 20120829일 추가 */
- model.setValue("/root/send/remark", model.getValue("/root/hidden/remark"));
- /*이재오 20120829일 추가 */
- model.makeValue("/root/send/userdeptflagcd", model.getValue("/root/init/LB0000/nm"));
-
- submit("TRLMR00603");
-
- if(getNodesetCount("/root/main/getbatchrpt") > 0) {
- initGridStyle("grd_batchrpt");
- setRowStyle("grd_batchrpt", "1", "3", "rsltstat", "bigger");
- setRowStyle("grd_batchrpt", "5", "c", "retestyn", "equal");
- setRowStyle("grd_batchrpt", "5", "C", "retestyn", "equal");
- }
- model.refresh();
- }
-
- //통합결과 조회
- function fGetUnityRslt() {
- model.removeNodeset("/root/main/getResultDetail");
- model.removeNodeset("/root/main/getreferencelist");
- grd_unityrslt.rebuildStyle();
- /*model.makeNode("/root/main/getunityrslt/testcd");
- model.makeNode("/root/main/getunityrslt/bcno");
- model.makeNode("/root/main/getunityrslt/baccd");
- model.makeNode("/root/main/getunityrslt/tclscd");
- model.makeNode("/root/main/getunityrslt/spccd");
- model.makeNode("/root/main/getunityrslt/rsltseq");
- model.makeNode("/root/main/getunityrslt/bacseqno");*/
-
- //var tcls = " ";
- //tcls = tcls + model.getValue("/root/main/getbatchrpt["+ grd_batchrpt.row +"]/tclsnm") + "\t " + model.getValue("/root/main/getbatchrpt["+ grd_batchrpt.row +"]/inptrslt");
- //model.setValue("/root/main/getunityrslt/rslt", tcls);
- /*model.setValue("/root/main/getunityrslt/testcd", model.getValue("/root/main/getbatchrpt/testcd"));
- model.setValue("/root/main/getunityrslt/bcno", model.getValue("/root/main/getbatchrpt/bcno"));
- model.setValue("/root/main/getunityrslt/baccd", "");
- model.setValue("/root/main/getunityrslt/tclscd", model.getValue("/root/main/getbatchrpt/tclscd"));
- model.setValue("/root/main/getunityrslt/spccd", model.getValue("/root/main/getbatchrpt/spccd"));
- model.setValue("/root/main/getunityrslt/rsltseq", model.getValue("/root/main/getbatchrpt/rsltseq"));
- model.setValue("/root/main/getunityrslt/bacseqno", model.getValue("/root/main/getbatchrpt/bacseqno"));*/
-
- model.setValue("/root/send/bcno", model.getValue("/root/main/getbatchrpt["+ grd_batchrpt.row +"]/bcno"));
- model.setValue("/root/main/selbcno", model.getValue("/root/main/getbatchrpt["+ grd_batchrpt.row +"]/bcno"));
- model.setValue("/root/send/workno", model.getValue("/root/main/getbatchrpt["+ grd_batchrpt.row +"]/workno"));
- model.setValue("/root/send/testcd", model.getValue("/root/main/getbatchrpt["+ grd_batchrpt.row +"]/testcd"));
-
-
- model.setValue("/root/send/pid", model.getValue("/root/main/getbatchrpt["+ grd_batchrpt.row +"]/pid"));
- model.makeValue("/root/send/userdeptflagcd", model.getValue("/root/init/LB0000/nm"));
-
- submit("TRLMP00402");
-
- initGridStyle("grd_unityrslt");
- setRowStyleSep("grd_unityrslt", "0", "B", "judgmark2", "equal");
-
- fGrdRemake();
-
- fGetTopInfo();
-
- //소견관리 추가 20120420
-
- //var pRow = grd_batchrpt.row;
- //var pCol = grd_batchrpt.col;
- //var sDetilRow = fGetRow(pRow,pCol);
- //var vSectcd = model.getValue("/root/main/testinfo/testlist["+ sDetilRow +"]/sectcd");
- //var vTsectcd = model.getValue("/root/main/testinfo/testlist["+ sDetilRow +"]/tsectcd");
- //fCMTPCD_ChangeNodeset(vSectcd, vTsectcd, sDetilRow);
- //fInitializeSoGyeon(sDetilRow); //소견 조회초기화
-
- init_cmt(); //그리드 클릭하였을때 소견 추가 20120423
-
- model.refresh();
- }
-
- function fGrdRemake(){
- for(i=1;i<grd_unityrslt.rows;i++){
- if(model.getvalue("/root/main/getResultDetail["+i+"]/judgmark") == "IMG"){
-
- grd_unityrslt.cellstyle("background-image", i, 0) = "../../../com/commonweb/images/icon_picture.gif";
- grd_unityrslt.cellstyle("background-position", i, 0) = "left";
- grd_unityrslt.cellstyle("padding-left", i, 0) = 15;
- }
- }
-
-
- }
-
- // 탑정보 위한 조회
- function fGetTopInfo(){
- model.setValue("/root/send/pid", model.getValue("/root/main/getbatchrpt["+ grd_batchrpt.row +"]/pid"));
- model.setValue("/root/send/prcpdd", model.getValue("/root/main/getbatchrpt["+ grd_batchrpt.row +"]/prcpdd"));
- model.setValue("/root/send/iogbn", model.getValue("/root/main/getbatchrpt["+ grd_batchrpt.row +"]/iogbn"));
-
- submit("TRLZZ00107");
-
- if(getPatientInfo("pid") != model.getValue("/root/main/getbatchrpt["+ grd_batchrpt.row +"]/pid")) {
- if(grd_batchrpt.rows> 1){
- setParameter("errflag", "Y");
- setParameter("condparam", "S" + "▦" + model.getvalue("/root/init/prcpinfo/prcpdd")+ "▦"
- + model.getvalue("/root/init/prcpinfo/execprcpuniqno") + "▦"
- + model.getvalue("/root/init/prcpinfo/instcd") );
-
- //modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
- }
-
- var paminfo = getGlobalVariable("paminfo");
- if((paminfo.length < 0) || (getPatientInfo("pid") != model.getValue("/root/main/getbatchrpt["+ grd_batchrpt.row +"]/pid"))){ //상단정보가 없는 경우
- delPatientInfos(); //환자정보 전체 삭제
-
- var pid = model.getValue("/root/main/getbatchrpt["+ grd_batchrpt.row +"]/pid")
- var hngnm = model.getValue("/root/main/getbatchrpt["+ grd_batchrpt.row +"]/patnm");
- //상단에 올릴 수 있는 정보가 있으면 아래와 같이 설정해 주시면 됩니다. 없으면 안 해주셔도 되구요..
-
- setPatientInfo("pid" , pid); //등록번호
- setPatientInfo("pname" , pid + "|" + hngnm); //환자명
- }
- }
-
- }
-
-
- function setRowStyleSep( gridID , styleFlag , data , colRef , control ) {
- var style = new Array("#ff0000" , "#ffe79d" , "#f3e1bf" , "#7BE6B7" , "#b9e5fb" , "#f7a08b" , "#fec34d" , "#dec6a4" , "#c8e67b" , "#43c8f5", "#99cf16", "#e5f3c2" );
- var styleFlags = styleFlag.split("^");
- var datas = data.split("^");
- if( control == null || control == "" )
- control = "equal";
- var controls = control.split("^");
- gridObj = document.all(gridID);
- gridObj.backcoloralternate = "transparent";
- for( var j = 0 ; j < datas.length ; j++ ) {
- var dataValue = datas[j];
- var styleValue = style[styleFlags[j]];
- for( var i = gridObj.fixedRows ; i < gridObj.Rows ; i++ ) {
- if(controls[j] == null)
- controls[j] = "equal";
- switch( controls[j] ) {
- case "small":
- if( gridObj.valueMatrix(i , gridObj.colRef(colRef)) < dataValue ) {
- gridObj.rowstyle( i , "data" , "color" ) = styleValue;
- gridObj.rowstyle( i , "data" , "font-weight" ) = "bold";
- }
- break;
- case "smallThen":
- if( gridObj.valueMatrix(i , gridObj.colRef(colRef)) <= dataValue ) {
- gridObj.rowstyle( i , "data" , "color" ) = styleValue;
- gridObj.rowstyle( i , "data" , "font-weight" ) = "bold";
- }
- break;
- case "bigger":
- if( gridObj.valueMatrix(i , gridObj.colRef(colRef)) > dataValue ) {
- gridObj.rowstyle( i , "data" , "color" ) = styleValue;
- gridObj.rowstyle( i , "data" , "font-weight" ) = "bold";
- }
- break;
- case "biggerThen":
- if( gridObj.valueMatrix(i , gridObj.colRef(colRef)) >= dataValue ) {
- gridObj.rowstyle( i , "data" , "color" ) = styleValue;
- gridObj.rowstyle( i , "data" , "font-weight" ) = "bold";
- }
- break;
- case "notEqual":
- if( gridObj.valueMatrix(i , gridObj.colRef(colRef)) != dataValue ) {
- gridObj.rowstyle( i , "data" , "color" ) = styleValue;
- gridObj.rowstyle( i , "data" , "font-weight" ) = "bold";
- }
- break;
- case "equal":
- if( gridObj.valueMatrix(i , gridObj.colRef(colRef)) == dataValue ) {
- gridObj.rowstyle( i , "data" , "color" ) = styleValue;
- gridObj.rowstyle( i , "data" , "font-weight" ) = "bold";
- }
- break;
- }
- }
- }
- }
-
-
-
- function fUpPatinfo(){
- if(getNodesetCount("/root/init/prcpinfo") > 0){
-
-
-
-
- setParameter("condparam", "S" + "▦" + model.getvalue("/root/init/prcpinfo/prcpdd")+ "▦"
- + model.getvalue("/root/init/prcpinfo/execprcpuniqno") + "▦"
- + model.getvalue("/root/init/prcpinfo/instcd"));
- //modal("SPMMO08900");
- modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
- }
- }
-
- //일괄보고
- function fExebatch() {
-
- if(model.getValue("/root/main/getuserAnm/acceptnm")==""){
- alert("확인자를 입력해주십시오");
- model.setFocus("ipt_rtnnm");
- return;
- }
-
- var Go = 0;
- for(i = 0; i < grd_batchrpt.rows; i++) {
- if(model.getValue("/root/main/getbatchrpt["+ i +"]/chk") == "Y") {
- grd_batchrpt.rowStatus(i) = 1;
- Go = 1;
- } else {
- grd_batchrpt.removeStatus(i, "update");
- }
- }
-
- if(Go == 0){
- alert("Confirm 할 환자를 선택하여 주십시오");
- return;
- }
-
- model.setValue("/root/send/batchdata", getGridUpdateData(grd_batchrpt));
-
- model.setValue("/root/send/acceptid" ,model.getValue("/root/hidden/rtnid"));
-
- model.makeValue("/root/send/userdeptflagcd", model.getValue("/root/init/LB0000/nm"));
-
- //alert(model.getValue("/root/send/acceptid"));
- submit("TXLMR00601");
-
- fGetBatchRpt();
- }
-
- //엑셀저장
- function fSaveExcel(gbn) {
- var file = window.fileDialog("save", ",", false, "Excel", "xls", "All Files (*.*)|*.*|Excel Files (*.xls)|*.xls");
-
- if(file != "") {
- if(gbn == "1"){
- grd_batchrpt.saveExcel(file);
- }else{
- grd_unityrslt.saveExcel(file);
- }
- }
- }
-
- function fMouseDown_grd_TestInfoCnts(){
- model.removeNodeset("/root/hidden/popupmenu");
-
- if(event.button == 3){ // 라이트클릭 메뉴만들기...
- model.makeNode("/root/hidden/popupmenu/grid");
- model.makeNode("/root/hidden/popupmenu/grid/item");
-
- n = parseInt(getNodesetCount("/root/hidden/popupmenu/grid/item")) + 1;
-
- model.makeValue("/root/hidden/popupmenu/grid/item["+n+"]/name" , "▶ 통합결과조회");
- model.makeValue("/root/hidden/popupmenu/grid/item["+n+"]/func" , "fTGyeolGwa");
-
- if(grd_batchrpt.isCell(event.target) && grd_batchrpt.mouseRow >= grd_batchrpt.fixedrows){
- setPopupMenu("grd_batchrpt" , true, "/root/hidden/popupmenu/grid/item", "name", "func");
- }else{
- window.setPopupMenu(false);
- }
- }
- }
-
- function fTGyeolGwa(){
- modal("SMAER00800 ","","","","","/root/main/getbatchrpt["+grd_batchrpt.row+"]/pid","/root/send/data/singdata/srchpid");
- }
- function fOnmenu(popupParam){
- if(popupParam == "fTGyeolGwa"){
- fTGyeolGwa();
- }
- }
-
- function fKeyEvent(){
- if(event.keyCode == "13"){
-
- // id입력시 usernm 보이게
- if(event.target == "ipt_rtnnm"){
- model.setvalue("/root/hidden/rtnid", ipt_rtnnm.currentText.toUpperCase());
- model.refresh();
-
- if(model.getValue("/root/hidden/rtnid") != ""){
- model.makeValue("/root/send/acceptid", model.getvalue("/root/hidden/rtnid"));
- submit("TRLBT10404");
- ipt_rtnnm.selBegin = 0;
- ipt_rtnnm.selEnd = ipt_rtnnm.currentText.length;
- model.setFocus("ipt_rtnnm");
-
- model.refresh();
-
- }
-
- }
- }
-
- }
-
- //소견을 위한 함수들 추가 20120420
- //선택 시행부서 소견
-
- //소견 노드 셋팅
- function fCMTPCD_ChangeNodeset(pSectcd, pTsectcd, refRow) {
- model.resetInstanceNode("/root/hidden/testconttsectcd");
-
- if(typeof(pSectcd) == "undefined") {
- cmb_cmt.choices.itemset.attribute("nodeset") ="/root/init/LB0210[cd='00']";
- //model.setValue("/root/hidden/testcont/testcontcd", "-");
- } else {
- cmb_cmt.choices.itemset.attribute("nodeset")="/root/init/LB0210[cd='00' or (etc01='" + pSectcd + "' and etc02='" + pTsectcd + "')]";
- }
- model.setvalue("/root/hidden/testcont/testcontcd" , "00");
- cmb_cmt.refresh();
-
- var vCmtTsect = model.getValue("/root/main/testinfo/testlist["+ refRow +"]/tsectcd");
-
- model.setValue("/root/hidden/testconttsectcd[1]/cd", "00");
- model.setValue("/root/hidden/testconttsectcd[1]/nm", "- 시행부서선택 -");
-
- if(vCmtTsect != ""){
- model.makeValue("/root/hidden/testconttsectcd[2]/cd" , vCmtTsect);
- model.makeValue("/root/hidden/testconttsectcd[2]/nm" ,
- model.getValue("/root/init/LB0106[cd='" + vCmtTsect + "']/nm"));
- }
- else{
- model.setvalue("/root/hidden/testcont/tsectcd" , "00");
- }
-
- //cmb_sect.refresh();
- }
- //시행부서선택시 소견노드 셋팅
- function fCMTPCD_ChangeNodeset2(){
- var tsectcd = model.getvalue("/root/hidden/testcont/tsectcd");
-
- if(tsectcd == "00"){
- cmb_cmt.choices.itemset.attribute("nodeset") ="/root/init/LB0210[cd='00']";
- }
- else{
- cmb_cmt.choices.itemset.attribute("nodeset")="/root/init/LB0210[cd='00' or (etc02='" + tsectcd + "')]" ;
- }
-
-
- model.setvalue("/root/hidden/testcont/testcontcd" , "00");
- cmb_cmt.refresh();
- }
-
- //소견 초기화
- function fInitializeSoGyeon(refRow){
- var cntTsect = getNodesetCount("/root/hidden/testconttsectcd");
- var cntSG = getNodesetCount("/root/main/testinfo/testcont");
- var curTsect = "";
- var strSG = "";
- var plusIdx = 1;
- /*
- if(cntSG == 0){
- model.makenode("/root/main/testinfo/testcont");
- }
-
- for(var sNum = 2; sNum <= cntTsect; sNum++){
- curTsect = model.getValue("/root/hidden/testconttsectcd[" + sNum + "]/cd");
-
- if(model.getValue("/root/main/testinfo/testcont[execdeptcd='"+ curTsect + "']/execdeptcd") == ""){
- var SG = parseInt(cntSG)+parseInt(plusIdx);
- model.makeNode("/root/main/testinfo/testcont[" + SG + "]/testcontcd");
- model.makeNode("/root/main/testinfo/testcont[" + SG + "]/execdeptcd");
- model.makeNode("/root/main/testinfo/testcont[" + SG + "]/testcont");
- model.makeNode("/root/main/testinfo/testcont[" + SG + "]/testcontkind");
- //model.makeNode("/root/main/TestInfo/testcont[" + (cntSG+plusIdx) + "]/rsltstat");
- model.makeNode("/root/main/testinfo/testcont[" + SG+ "]/iud");
-
- model.setValue("/root/main/testinfo/testcont[" +SG + "]/execdeptcd", curTsect);
- model.setValue("/root/main/testinfo/testcont[" + SG + "]/iud", "n");
- plusIdx++;
- }
- }
- */
- if(cntTsect == 2){
- model.setValue("/root/hidden/testcont/tsectcd", model.getValue("/root/hidden/testconttsectcd[2]/cd"));
- model.setValue("/root/hidden/testcont/testcontcd", "00");
- }else{
- model.setValue("/root/hidden/testcont/tsectcd", "00");
- model.setValue("/root/hidden/testcont/testcontcd", "00");
- }
-
- fSelectTestContTsect(refRow);
-
- //model.makeValue("/root/hidden/refflag/p_isedit", "");
- //model.refresh();
- }
-
- function fSelectTestContTsect(refRow){
- var selTsectcd = model.getValue("/root/hidden/testcont/tsectcd").getTrim();
- var vSectcd = "";
- var vTsectcd = "";
- var vBcno = "";
-
- if(refRow != "return") {
- vSectcd = model.getValue("/root/main/testinfo/testlist["+ refRow +"]/sectcd");
- vTsectcd = model.getValue("/root/main/testinfo/testlist["+ refRow +"]/tsectcd");
- vBcno = model.getValue("/root/main/testinfo/testlist["+ refRow +"]/bcno");
- vTestcd = model.getValue("/root/main/testinfo/testlist["+ refRow +"]/testcd");
- }else{//소견 시행부서 변경시 그냥 return
- return;
- }
-
- /*var cntSoGyeon = getNodesetCount("/root/main/testinfo/testcont"); //소견 저장 개수
- var strSG = "";
-
- if(selTsectcd == "00"){
- for(var slipR = 1; slipR <= cntSoGyeon; slipR++){
- if(model.getValue("/root/main/testinfo/testcont[" + slipR + "]/iud") != "n"){
- strSG += "【" + model.getValue("/root/main/testinfo/testcont[" + slipR + "]/execdeptcd") + "】"
- + model.getValue("/root/main/testinfo/testcont[" + slipR + "]/testcont") + "\n";
- }
- }
- }else{
- for(var slipR = 1; slipR <= cntSoGyeon; slipR++){
- if(model.getValue("/root/main/testinfo/testcont[" + slipR + "]/execdeptcd") == vTsectcd){
- if(model.getValue("/root/main/testinfo/testcont[" + slipR + "]/bcno") == vBcno){
- strSG += model.getValue("/root/main/testinfo/testcont[" + slipR + "]/testcont") + "\n";
- //strSG += "【" + selSlip + "】"
- // + model.getValue("/root/MainData/GSHMSangSe/GeomSaSoGyeon[" + slipR + "]/cmtp") + "\n";
- }
- }
- }
- }*/
-
- //model.setValue("/root/main/testinfo/spcinfo/testcont", strSG);
- //alert("소견삽입");
- //alert(selTsectcd);
- if ( selTsectcd == "M1" || "M2" || "M3" ){ //20120420
- selTsectcd = "-" ;
- }
-
- alert(model.getValue("/root/main/testinfo/testcont[bcno = '"+ vBcno + "' and execdeptcd = '" + selTsectcd + "']/testcont"));
- //시행부서별 소견 전체는.. 걍 버리고 해당 검사 시행부서 소견만 조회
- model.setValue("/root/main/testinfo/spcinfo/testcont"
- , model.getValue("/root/main/testinfo/testcont[bcno = '"+ vBcno + "' and execdeptcd = '" + selTsectcd + "']/testcont"));
-
- //검사항목별 소견 추가
- model.setValue("/root/main/testinfo/spcinfo/testcmts"
- , model.getValue("/root/main/testinfo/testcmts[bcno = '"+ vBcno + "' and testcd = '"+ vTestcd + "']/testcont") != "" ?
- model.getValue("/root/main/testinfo/testcmts[bcno = '"+ vBcno + "' and testcd = '"+ vTestcd + "']/testcont")
- : model.getvalue("/root/main/testinfo/testlist["+refRow+"]/tclsscrnnm") + " : ");
-
- model.refresh();
-
- }
-
- //소견 선택시
- function fSetCmt(pRow,pCol){
- var sDetilRow = fGetRow(pRow,pCol); //testlist row 조회
-
- var curSlip = model.getValue("/root/hidden/testcont/tsectcd");
- var curCmptcd = model.getValue("/root/hidden/testcont/testcontcd");
-
- if(curSlip == "00"){
- //TFGetMsgBox( -1, "소견을 입력할 슬립을 지정하여 주세요", "소견입력오류", "I", "OK" );
- model.setValue("/root/hidden/testcont/testcontcd", "00");
- model.refresh();
- return;
- }
-
- var vSectcd = model.getValue("/root/main/testinfo/testlist["+ sDetilRow +"]/sectcd");
- var vTsectcd = model.getValue("/root/main/testinfo/testlist["+ sDetilRow +"]/tsectcd");
- var newCmt = model.getValue("/root/init/LB0210[cd='" + curCmptcd + "' and etc01='" + vSectcd + "' and etc02='" + vTsectcd + "']/etc03");
- /*
- var curCmt = model.getValue("/root/main/testinfo/spcinfo/testcont");
-
- if(curCmt == "\n" || curCmt=="")
- var rstCmt = newCmt;
- else
- var rstCmt = curCmt + "\n" + newCmt;
-
- model.setValue("/root/main/testinfo/spcinfo/testcont", rstCmt);*/
-
- var vContFlag = model.getValue("/root/hidden/cmtflag");
- if(vContFlag == 1){ //시행부서별 소견
- var curCmt = model.getValue("/root/main/testinfo/spcinfo/testcont");
- if(curCmt == "\n" || curCmt=="") {
- var rstCmt = newCmt;
- } else{
- var rstCmt = curCmt + "\n" + newCmt;
- }
- model.setValue("/root/main/testinfo/spcinfo/testcont", rstCmt);
- textarea2.selBegin = (rstCmt).length;
- }else{ //검사항목별 소견
- var curCmt = model.getValue("/root/main/testinfo/spcinfo/testcmts");
- var rstCmt = curCmt + " "+ newCmt;
-
- model.setValue("/root/main/testinfo/spcinfo/testcmts", rstCmt);
- text_testcmts.selBegin = (rstCmt).length;
- }
- //model.refresh();
-
- fSoGyeonJeoJang();
- }
-
- //소견저장
- function fSetContCmt(pRow,pCol){
- // alert( model.getValue("/root/hidden/growth"));
-
- //if(model.getvalue("/root/hidden/refparam/userid") == "" || model.getvalue("/root/main/getUsernm/usernm") == ""){
- // messageBox("검사자를 " , "C001" ,"");
- // model.setFocus("ipt_testpsn");
- // return;
- //}
- /* 결과 저장시 소견 입력 여부에 따라 등록되지 않은게 있다면 같이 저장하기 위해 막음
- if(model.getvalue("/root/main/testinfo/testlist["+ sDetilRow +"]/rsltstat") == "-") {
- messageBox("소견등록은 결과저장 이후에 가능합니다. " , "C" ,"");
- return;
- }*/
-
- /*if(model.getvalue("/root/main/testpatlist/patlist["+grd_patList.row+"]/rsltstat") == "4") {
- messageBox("최종보고된 검체의 소견은 수정할수 없습니다." , "C" ,"");
- return;
- }*/
-
- if (model.getValue("/root/hidden/refflag/p_isedit") != "true"
- && model.getxPathValue('count(/root/main/cmt/testcont[m = ""])') == "0") {
- messageBox("소견을 입력 하세요!" , "C" ,"");
- return;
- }
-
- if(model.getValue("/root/hidden/rtnid") == ""){
- messageBox("전문의ID를 입력 하세요" , "C" ,"");
- return;
- }else{
- //model.setValue("/root/hidden/refflag/userid", model.getValue("/root/hidden/rtnid"));
- }
- //model.copyNode("/root/send/data1","/root/hidden/refflag");
-
- //model.setvalue("/root/send/data1", "m▦rownum▦selchk▦tclsscrnm▦bufinptrslt▦reptrslt▦multiflag▦rstdt▦refval▦rsltunit▦judgmark▦panicmark▦deltamark▦criticalmark▦alertmark▦▦▦rsltmark▦erprcpflag▦bfreptrslt▦bflastreptdt▦rstnm▦eqmtnm▦testcmt▦tclskind▦testcd▦spccd▦rsltseq▦inptrslt▩");
-
- //이재오 20120717일 다중저장기능 구현 //
- //model.setvalue("/root/hidden/refflag/testlrgkind" , "M");
- //model.setValue("/root/hidden/refflag/rsltstat", "3");
-
- var Go = 0;
- if (model.getValue("/root/hidden/growth") == "2" )
- {
- var A1 = messageBox("일괄저장" , "S003" ,"취소");
- if ( A1 == "6"){
- /*
- for(i = 0; i < grd_batchrpt.rows; i++) {
- if(model.getValue("/root/main/getbatchrpt["+ i +"]/chk") == "Y") {
-
- }
- } */
-
- for(i = 0; i < grd_batchrpt.rows; i++) {
- if(model.getValue("/root/main/getbatchrpt["+ i +"]/chk") == "Y") {
- Go = 1;
- //model.removeNode("/root/send/data1");
- //model.removeNode("/root/hidden/refflag");
-
- var sDetilRow = pRow; //grd_batchrpt row 조회
- model.setValue("/root/send/workno", model.getValue("/root/main/getbatchrpt["+ i +"]/workno"));
- model.setValue("/root/send/testcd", model.getValue("/root/main/getbatchrpt["+ i +"]/testcd"));
- model.setValue("/root/send/pid", model.getValue("/root/main/getbatchrpt["+ i +"]/pid"));
- model.makeValue("/root/send/userdeptflagcd", model.getValue("/root/init/LB0000/nm"));
- model.removenode("/root/send/bcno");
- model.makeNode("/root/send/bcno");
-
- model.setvalue("/root/hidden/refflag/testlrgkind" , "M");
- model.setValue("/root/hidden/refflag/rsltstat", "3");
- model.setValue("/root/hidden/refflag/userid", model.getValue("/root/hidden/rtnid"));
- model.setValue("/root/hidden/refflag/p_isedit", "true"); //저장할거 생겼다.
- model.setValue("/root/hidden/refflag/bcno", model.getvalue("/root/main/getbatchrpt["+ i +"]/bcno"));
- model.setvalue("/root/hidden/refflag/testcont" , model.getvalue("/root/main/getbatchrpt["+ sDetilRow +"]/testcont"));
- model.setvalue("/root/hidden/refflag/testcontcd" , model.getvalue("/root/main/getbatchrpt["+ sDetilRow +"]/testcontcd"));
-
-
- // model.makeValue("/root/send/testlrgkind" , "M");
- // model.makeValue("/root/send/rsltstat", "3");
- // model.makeValue("/root/send/userid", model.getValue("/root/hidden/rtnid"));
- // model.makeValue("/root/send/p_isedit", "true"); //저장할거 생겼다.
- // model.makeValue("/root/send/bcno", model.getvalue("/root/main/getbatchrpt["+ i +"]/bcno"));
- // model.makeValue("/root/send/testcont" , model.getvalue("/root/main/getbatchrpt["+ sDetilRow +"]/testcont"));
- // model.makeValue("/root/send/testcontcd" , model.getvalue("/root/main/getbatchrpt["+ sDetilRow +"]/testcontcd"));
- // alert(model.getvalue("/root/hidden/refflag/bcno") + " : "+ model.getvalue("/root/main/getbatchrpt["+ i +"]/bcno"));
- // alert(model.getvalue("/root/hidden/refflag/testcont") + " : "+ model.getvalue("/root/main/getbatchrpt["+ sDetilRow +"]/testcont"));
- // alert(model.getvalue("/root/hidden/refflag/testcontcd") + " : "+ model.getvalue("/root/main/getbatchrpt["+ sDetilRow +"]/testcontcd"));
-
- model.copyNode("/root/send/data1","/root/hidden/refflag");
- // debugger;
- //alert(i);
- submit("TXLMR00201");
- model.removenode("/root/send/data1");
- model.makeNode("/root/send/data1");
-
- }
- }
-
- if(Go == 0){
- alert("Confirm 할 환자를 선택하여 주십시오");
- return;
- }
- }
- else{
- return;
- }
-
- }
- else{
- var sDetilRow = pRow; //grd_batchrpt row 조회
- model.setValue("/root/hidden/refflag/bcno", model.getvalue("/root/main/getbatchrpt["+ sDetilRow +"]/bcno"));
- model.setvalue("/root/hidden/refflag/testcont" , model.getvalue("/root/main/getbatchrpt["+ sDetilRow +"]/testcont"));
- model.setvalue("/root/hidden/refflag/testcontcd" , model.getvalue("/root/main/getbatchrpt["+ sDetilRow +"]/testcontcd"));
- model.copyNode("/root/send/data1","/root/hidden/refflag");
- //alert(model.getValue("/root/send/data1"));
- submit("TXLMR00201");
-
- }
-
-
- /* 이재오 막다 20120718 단일기능
- model.setvalue("/root/hidden/refflag/testlrgkind" , "M");
- model.setValue("/root/hidden/refflag/rsltstat", "3");
-
- model.setValue("/root/hidden/refflag/bcno", model.getvalue("/root/main/getbatchrpt["+ sDetilRow +"]/bcno"));
- model.setvalue("/root/hidden/refflag/testcont" , model.getvalue("/root/main/getbatchrpt["+ sDetilRow +"]/testcont"));
- model.setvalue("/root/hidden/refflag/testcontcd" , model.getvalue("/root/main/getbatchrpt["+ sDetilRow +"]/testcontcd"));
-
- if(model.getValue("/root/hidden/rtnid") == ""){
- messageBox("전문의ID를 입력 하세요" , "C" ,"");
- return;
- }else{
- model.setValue("/root/hidden/refflag/userid", model.getValue("/root/hidden/rtnid"));
- }
- model.copyNode("/root/send/data1","/root/hidden/refflag");
- //alert(model.getValue("/root/send/data1"));
- submit("TXLMR00201");
-
- 이재오 막다 20120718 단일기능 */
-
- //model.setValue("/root/hidden/refflag/rsltstat", "1");
- //model.setValue("/root/hidden/refflag/testlrgkind", "-");
-
-
-
- //여러 검체 동시에 일괄 저장 때리기 위한 구분
- //model.makeValue("/root/hidden/refflag/rsltscrflag", "test");
-
- //model.copyNode("/root/send/data2" , "/root/hidden/refflag");
-
- //시행부서별, 검사항목별 소견 저장데이터 생성
- //fMakeSendSoGyeon();
- }
-
- //소견 저장을 위한 소견 데이터 만들기
- function fMakeSendSoGyeon(){
-
- var cntSG = getNodesetCount("/root/main/testinfo/testcont"); //소견 저장 개수
-
- var vSndSG = "m▦bcno▦testcontcd▦execdeptcd▦testcont▦testcontkind▩";
-
- for(var i = 1; i <= cntSG; i++){
-
- if(model.getValue("/root/main/testinfo/testcont[" + i + "]/iud") != ""){
- vSndSG += "u" + "▦"
- + model.getValue("/root/main/testinfo/testcont[" + i + "]/bcno") + "▦"
- + model.getValue("/root/main/testinfo/testcont[" + i + "]/testcontcd") + "▦"
- + model.getValue("/root/main/testinfo/testcont[" + i + "]/execdeptcd") + "▦"
- + model.getValue("/root/main/testinfo/testcont[" + i + "]/testcont") + "▦"
- + model.getValue("/root/main/testinfo/testcont[" + i + "]/testcontkind") + "▩";
- }
- }
- model.makeValue("/root/send/data3", vSndSG);
-
- //검사항목별 소견
- var vSndTestcmts = "m▦bcno▦tclscd▦testcd▦spccd▦rsltseq▦testcontcd▦testcont▦flag▩";
- var vTestCmtCounts = model.getxPathValue('count(/root/main/testinfo/testcmts)');
- var xPath = "/root/main/testinfo/testcmts";
- for (j = 1; j <= vTestCmtCounts; j++){
- if(model.getValue(xPath+ "[" + j + "]/m") != ""){
- vSndTestcmts += model.getValue(xPath+ "[" + j + "]/m") + "▦"
- + model.getValue(xPath+ "[" + j + "]/bcno") + "▦"
- + model.getValue(xPath+ "[" + j + "]/tclscd") + "▦"
- + model.getValue(xPath+ "[" + j + "]/testcd") + "▦"
- + model.getValue(xPath+ "[" + j + "]/spccd") + "▦"
- + model.getValue(xPath+ "[" + j + "]/rsltseq") + "▦"
- + model.getValue(xPath+ "[" + j + "]/testcontcd") + "▦"
- + model.getValue(xPath+ "[" + j + "]/testcont") + "▦"
- + "2▩"; //소견만 저장하기때문에 2보냄 결과등록시와 소견만 저장시 결과seq때문에..
-
- }
- }
- model.makeValue("/root/send/data4", vSndTestcmts);
-
- submit("TXLLR80101",false);
-
- //저장 후 소견 iud초기화
- for (j = 1; j <= vTestCmtCounts; j++){
- model.setValue(xPath+ "[" + j + "]/m", "");
- }
- model.setValue("/root/hidden/refflag/p_isedit", "");
- model.removeNodeset("/root/send/data2"); //아씨..이게 소견저장할때와 검사결과 저장할때 같은 노드임 ㅡ,.ㅡ
- model.makeNode("/root/send/data2");
- model.refresh();
- }
-
- //소견내용이 바뀔경우
- function fSoGyeonJeoJang(pRef){ //pRef : 소견구분 1:
-
- var curSlip = model.getValue("/root/main/cmt/tsectcd"); // 선택된 로우의 분류
- var curCmptcd = model.getValue("/root/main/cmt/testcontcd"); //선택된 로우의 소견코드
- var vCmtp = model.getValue("/root/main/cmt/testcont"); //입력되어진 텍스트창의 소견내용값
- var vNodeCnt, vContNodeCount;
-
- var vRow = grd_batchrpt.row ;
- var vBcno = model.getvalue("/root/main/getbatchrpt["+vRow+"]/bcno");
- var vTestcd = model.getvalue("/root/main/getbatchrpt["+vRow+"]/testcd"); //검사코드
- var vTsectcd = model.getvalue("/root/main/getbatchrpt["+vRow+"]/tsectcd"); //시행부서
- var vTclscd, vSpccd, vRsltseq;
-
- //if(curSlip == "-"){
- // return;
- //}
-
- //alert (vCmtp);
- var xPath_Cont = "/root/main/getbatchrpt";
-
- //model.getvalue("/root/main/getbatchrpt["+ vRow +"]/testcont")
-
- //해당 바코드, 시행부서 노드 존재 여부 판단 위해
- vNodeCnt = model.getxPathValue('count(/root/main/getbatchrpt["'+ vRow +'"]/testcont)');
- if(vCmtp.getTrim() == "" || vCmtp.getTrim() == "-"){
- //alert("1");
- if(vNodeCnt > 0){ //소견 변경했는데 소견이 빈값이고 저장된 소견이 존재 할 경우
- //alert("1-1");
- model.setValue(xPath_Cont + "["+ vRow +"]/testcont", "-");
- }else{
- //alert("1-2");
- return; //소견내용 없고 저장된소견도 없을때 return;
- }
- }else{
- //alert("2");
- if(vNodeCnt > 0){ //소견 존재시 setValue
- //alert("2-1");
- model.setValue(xPath_Cont + "["+ vRow +"]/testcontcd", curCmptcd);
- model.setValue(xPath_Cont + "["+ vRow +"]/testcont", vCmtp);
-
- }else{
- //alert("2-2"); //없을때 만들어 넣기
- //vContNodeCount = model.getxPathValue('count(/root/main/cmt/testcont)');
- //vContNodeCount = parseInt(vContNodeCount) + 1;
-
- model.makeValue(xPath_Cont + "[" + vRow + "]/bcno" , vBcno)
- model.makeValue(xPath_Cont + "[" + vRow + "]/testcontcd" , curCmptcd)
- model.makeValue(xPath_Cont + "[" + vRow + "]/testcont" , vCmtp)
- //model.makeValue(xPath_Cont + "[" + vRow + "]/testcontkind" , "00")
- //model.makeValue(xPath_Cont + "[" + vRow + "]/execdeptcd" , vTsectcd)
- }
- model.setValue("/root/hidden/refflag/p_isedit", "true"); //저장할거 생겼다.
- }
-
-
- }
- //미생물 전용 소견을 위한 함수들 20120420
-
- function init_cmt(){
-
- var pRow = grd_batchrpt.row;
- var vIsedit = model.getValue("/root/hidden/refflag/p_isedit"); //소견 저장할것이나 수정할것 생기면 플래그 바뀜
- var vCmtpcd = model.getValue("/root/main/getbatchrpt[" + pRow + "]/testcontcd");
- var vCmtp = model.getValue("/root/main/getbatchrpt[" + pRow + "]/testcont");
- var vCmtprstflag = model.getValue("/root/main/getbatchrpt[" + pRow + "]/cmtrsltstat");
- var vBcno = model.getValue("/root/main/getbatchrpt[" + pRow + "]/bcno");
- var vSectcd = model.getValue("/root/main/getbatchrpt[" + pRow + "]/sectcd");
- var vTsectcd = model.getValue("/root/main/getbatchrpt[" + pRow + "]/tsectcd");
-
- model.setvalue("/root/hidden/refflag/p_isedit", vIsedit);
-
- model.setvalue("/root/main/cmt/testcontcd","");
- model.setvalue("/root/main/cmt/testcont", vCmtp);
- model.setvalue("/root/main/cmt/cmtrsltstat", vCmtprstflag);
- model.setvalue("/root/main/cmt/bcno",vBcno);
- model.setvalue("/root/main/cmt/sectcd",vSectcd);
- model.setvalue("/root/main/cmt/tsectcd", vTsectcd);
-
- model.setvalue("/root/hidden/add", "1");
- model.setvalue("/root/hidden/newline", "1");
-
-
- //fBaseInfoRef("0210|");
-
- //model.resetInstanceNode("/root/main/cmt/testcontcd");
-
- //cmb_cmt.item.attribute
-
- cmb_cmt.choices.itemset.attribute("nodeset")="/root/init/LB0210[cd='00' or (etc01='" + "M" + "'and etc02='" + vTsectcd + "')]";
- model.setvalue("/root/main/cmt/testcontcd" , "00");
- cmb_cmt.refresh();
-
- model.refresh();
- }
-
- function fCmtCombo(){
-
- var curCmptcd = model.getValue("/root/main/cmt/testcontcd");
- var vSectcd = model.getValue("/root/main/cmt/sectcd");
- var vTsectcd = model.getValue("/root/main/cmt/tsectcd");
-
- //alert(curCmptcd);
- //alert(vSectcd);
- //alert(vTsectcd);
-
- //var cmtcont = model.getValue("/root/Init/LB0210[cd='" + s + "' and etc01='" + vSectcd + "' and etc02='" + vTsectcd + "']/etc03");
- var newCmt = model.getValue("/root/init/LB0210[cd='" + curCmptcd + "' and etc01='" + vSectcd + "' and etc02='" + vTsectcd + "']/etc03");
-
- //var cmtcont = "";
- //alert(newCmt);
- if (model.getValue("/root/hidden/add") == "1") {
- var crlf = (model.getValue("/root/hidden/newline") == "1") ? "\n" : "";
- model.setvalue("/root/main/cmt/testcont", model.getValue("/root/main/cmt/testcont") + crlf + newCmt);
- } else {
- model.setvalue("/root/main/cmt/testcont", newCmt);
- }
-
- model.refresh();
- fCMT_SetEditFlag()
-
- }
-
- // 입력버튼 클릭
- function fSelect_Click() {
-
- var vIsedit = model.getValue("/root/hidden/refflag/p_isedit");
- var vCmtpcd = model.getValue("/root/main/cmt/testcontcd");
- var vCmtp = model.getValue("/root/main/cmt/testcont");
- opener.model.setvalue("/root/hidden/refflag/p_isedit", vIsedit);
- opener.model.setvalue("/root/main/TestInfo/getSpcInfo/testcontcd", vCmtpcd);
- opener.model.setvalue("/root/main/TestInfo/getSpcInfo/testcont", vCmtp);
- window.close();
- }
-
-
- function fCMT_SetEditFlag() {
- model.setvalue("/root/hidden/refflag/p_isedit", "true");
-
- }
-
- function fCmtFind(){
- if (event.keyCode == 13) {
- var s = model.getValue("/root/main/cmt/testcontcd");
- var vSectcd = model.getValue("/root/main/cmt/sectcd");
- var vTsectcd = model.getValue("/root/main/cmt/tsectcd");
- var cmtcont = "";//model.getValue("/root/Inita/LB0210[cd='" + s + "' and etc01='" + vSectcd + "' and etc02='" + vTsectcd + "']/etc03");
-
- if (cmtcont == "") {
- model.setvalue("/root/MainData/cmtpcd", "-");
- }
- fCmtCombo();
-
- }
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744; ">
- <group id="group1" style="left:0px; top:10px; width:1195px; height:60px; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1195px; height:60px; "/>
- <line id="line3" class="line_4" style="x1:1108px; y1:8px; x2:1108px; y2:50px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1123px; top:19px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetBatchRpt();
- ]]>
- </script>
- </button>
- <caption id="caption3" class="search_no_b" style="left:312px; top:8px; width:15px; height:17px; ">~</caption>
- <input id="ipt_usdd" ref="/root/hidden/usdd" class="input_search" inputtype="date" style="left:208px; top:8px; width:100px; height:19px; "/>
- <input id="ipt_uedd" ref="/root/hidden/uedd" class="input_search" inputtype="date" style="left:330px; top:8px; width:100px; height:19px; "/>
- <caption id="cap_rgstdd" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">검색구분 :</caption>
- <select1 id="rdo_growth" ref="/root/hidden/growth" appearance="full" cellspacing="20" cols="3" overflow="visible" style="left:859px; top:35px; width:230px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>0</value>
- </item>
- <item>
- <label>Growth</label>
- <value>1</value>
- </item>
- <item>
- <label>No-Growth</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <img id="img1" class="icon_search" style="left:470px; top:35px; width:16px; height:16px; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //window.load("SPLLC00001_검사항목선택.xrw","modeless", "검사항목선택", "width:580px; height:460;min:hidden;max:hidden;align:center", "/root/hidden/bcno", "/root/hidden/bcno");
- //open("SMLLF90400", 50, 50, 100);
- open("SMLLF90400", 200, 300, 200, "", "/root/hidden/ref/tclscdlist/testgrup", "/root/hidden/tclscdlist/testgrup");
- ]]>
- </script>
- </img>
- <input id="ipt_tclscdlist" ref="/root/hidden/ref/tclscdlist/tclsnmlist" class="input_default" rclass="input_search" style="left:267px; top:34px; width:198px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // 검사항목 지웠을때
- fSetTclscdClean();
-
-
- ]]>
- </script>
- </input>
- <select1 id="cmb_tclscd" ref="/root/hidden/ref/tclscdlist/testgrup" class="combo_search" appearance="minimal" style="left:133px; top:34px; width:130px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0103">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSelectTestGrup();
- ]]>
- </script>
- </select1>
- <caption id="caption2" class="search_name" style="left:15px; top:35px; width:112px; height:17px; ">검사항목선택 :</caption>
- <select1 id="cmb_ddflag" ref="/root/hidden/ref/refflag" class="combo_search" appearance="minimal" style="left:105px; top:8px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>보고일자</label>
- <value>1</value>
- </item>
- <item>
- <label>접수일자</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <caption id="caption5" class="search_name" style="left:635px; top:9px; width:89px; height:17px; ">병 동 :</caption>
- <select1 id="cmb_io" ref="/root/hidden/ref/ioflag" class="combo_search" appearance="minimal" style="left:529px; top:8px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>[-]전체</label>
- <value>0</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- <item>
- <label>병동</label>
- <value>I</value>
- </item>
- <item>
- <label>건진</label>
- <value>S</value>
- </item>
- </choices>
- </select1>
- <caption id="caption7" class="search_name" style="left:438px; top:9px; width:89px; height:17px; ">외래/입원:</caption>
- <select1 id="cmb_ward" ref="/root/hidden/ref/ward" class="combo_search" appearance="minimal" itemcount="20" style="left:725px; top:8px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0114">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption9" class="search_name" style="left:835px; top:9px; width:90px; height:17px; ">확인자 :</caption>
- <input id="ipt_rtnnm" ref="/root/hidden/rtnid" appearance="input" style="left:915px; top:8px; width:90px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fKeyEvent();
- ]]>
- </script>
- </input>
- </group>
- <caption id="caption4" class="tit_2" style="left:5px; top:80px; width:150px; height:13px; ">미생물 결과 목록</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:95px; x2:315px; y2:95px; "/>
- <datagrid id="grd_batchrpt" nodeset="/root/main/getbatchrpt" caption="^건수^작업번호^등록번호^성명^검사명^바코드번호^검체명^성별/나이^진료과^rsltstat^병동/병실^antibiocd^bcno^testcd^tclscd^spccd^rsltseq^bacseqno^inptrslt^sectcd^tsectcd^testcontcd^testcont^^^^^소견" colsep="^" colwidth="25,35, 75, 55, 45, 150, 90, 80, 60, 60, 0, 80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 100, 100, 100" dataheight="23" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:0px; top:100px; width:315px; height:621px; text-align:center; border-style:none; ">
- <col checkvalue="Y,N" ref="chk" type="checkbox"/>
- <col ref="nocnt"/>
- <col editable="false" ref="workno" type="input"/>
- <col editable="false" ref="pid" type="input"/>
- <col ref="patnm" style="text-align:left; "/>
- <col ref="tclsnm" style="left:261px; top:23px; width:200px; height:23px; text-align:left; "/>
- <col editable="false" ref="bcno" type="input"/>
- <col ref="spcnm" style="left:526px; top:23px; width:80px; height:23px; "/>
- <col ref="sexage"/>
- <col ref="orddeptnm" style="text-align:left; "/>
- <col ref="rsltstat"/>
- <col ref="wardroom" style="text-align:left; "/>
- <col ref="antibiocd" style="text-align:left; "/>
- <col ref="testcd"/>
- <col ref="tclscd"/>
- <col ref="spccd"/>
- <col ref="rsltseq"/>
- <col ref="bacseqno"/>
- <col ref="inptrslt"/>
- <col ref="retestyn" visibility="hidden"/>
- <col ref="prcpdd" visibility="hidden"/>
- <col ref="iogbn" visibility="hidden"/>
- <col ref="amrmark" visibility="hidden"/>
- <col ref="workno" visibility="hidden"/>
- <col ref="sectcd" visibility="hidden"/>
- <col ref="tsectcd" visibility="hidden"/>
- <col ref="testcontcd" visibility="hidden"/>
- <col ref="spccd" visibility="hidden">
- <![CDATA[--]]>
- </col>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(grd_batchrpt.isCell(event.target) && grd_batchrpt.row >= grd_batchrpt.fixedRows ){
- fGetUnityRslt();
- }
-
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_batchrpt.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- if(grd_batchrpt.isCell(event.target) && grd_batchrpt.row >= grd_batchrpt.fixedRows ){
- fMouseDown_grd_TestInfoCnts();
- }
- ]]>
- </script>
- <col ref="testcont"/>
- </datagrid>
- <caption id="caption1" class="tit_2" style="left:323px; top:80px; width:105px; height:13px; ">결과</caption>
- <line id="line2" class="line_1" style="x1:325px; y1:95px; x2:1194px; y2:95px; "/>
- <button id="btn_excel" class="btn2_letter2" style="left:1152px; top:74px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveExcel("2");
- ]]>
- </script>
- </button>
- <datagrid id="grd_unityrslt" nodeset="/root/main/getResultDetail" caption="결 과 내 역" colsep="^" colwidth="1500" dataheight="23" defaultrows="1" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:325px; top:100px; width:870px; height:435px; font-family:굴림체; ">
- <col ref="reptrslt" style="font-family:굴림체; "/>
- <col ref="judgmark2" visibility="hidden" style="font-family:굴림체; "/>
- </datagrid>
- <button id="button1" class="btn2_letter2" style="left:272px; top:74px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveExcel("1");
- ]]>
- </script>
- </button>
- <output id="output3" ref="/root/main/getuserAnm/acceptnm" class="output_fix" style="left:1006px; top:18px; width:90px; height:19px; "/>
- <select1 id="cmb_cmt" ref="/root/main/cmt/testcontcd" class="combo_default" appearance="minimal" style="left:387px; top:560px; width:739px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0210">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fCmtCombo();
- fSoGyeonJeoJang(1);
- ]]>
- </script>
- </select1>
- <caption id="cap_1818" class="cell_1" style="left:325px; top:581px; width:60px; height:140px; ">소견</caption>
- <textarea id="textarea2" ref="/root/main/cmt/testcont" style="left:387px; top:581px; width:805px; height:139px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fCMT_SetEditFlag();
- //fSoGyeonJeoJang(1);
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- fSoGyeonJeoJang(1);
- ]]>
- </script>
- </textarea>
- <caption id="caption8" class="tit_2" style="left:325px; top:540px; width:100px; height:13px; ">소견등록</caption>
- <line id="line4" class="line_1" style="x1:327px; y1:555px; x2:1192px; y2:555px; "/>
- <select id="checkbox1" ref="/root/hidden/add" visibility="hidden" overflow="visible" appearance="full" cols="2" style="left:1074px; top:540px; width:50px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>추가</label>
- <value>1</value>
- </item>
- </choices>
- </select>
- <select id="checkbox2" ref="/root/hidden/newline" visibility="hidden" overflow="visible" appearance="full" cols="2" style="left:1125px; top:540px; width:60px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>다음줄</label>
- <value>1</value>
- </item>
- </choices>
- </select>
- <caption id="caption10" class="cell_1" style="left:325px; top:560px; width:60px; height:20px; ">소견코드</caption>
- <button id="btn_cfm" class="btn2_letter4" style="left:1128px; top:559px; width:64px; height:19px; ">
- <caption>소견저장</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSetContCmt(grd_batchrpt.row,grd_batchrpt.col);
-
- if(grd_batchrpt.row >= grd_batchrpt.fixedRows ){
- fGetUnityRslt();
- }
- ]]>
- </script>
- </button>
- <input id="input1" ref="/root/main/selbcno" editable="false" style="left:1051px; top:75px; width:99px; height:19px; "/>
- <caption id="caption11" class="tit_2" style="left:960px; top:77px; width:90px; height:13px; ">선택바코드</caption>
- <select1 id="radio2" ref="/root/hidden/remark" appearance="full" cellspacing="20" cols="3" overflow="visible" style="left:590px; top:45px; width:230px; height:20px; font-weight:bold; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>0</value>
- </item>
- <item>
- <label>소견있음</label>
- <value>1</value>
- </item>
- <item>
- <label>소견없음</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <caption id="caption12" class="tit_2" style="left:515px; top:45px; width:70px; height:13px; ">결과상태</caption>
- <caption id="caption13" class="tit_2" style="left:341px; top:75px; width:80px; height:13px; ">관련검사</caption>
- <input id="input2" ref="/root/main/getreferencelist/gumsa" style="left:413px; top:73px; width:545px; height:19px; "/>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
- <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <button id="btn_reset" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetInit();
- ]]>
- </script>
- </button>
- <button id="btn_batchrpt" class="btn4_letter5" style="left:1034px; top:3px; width:92px; height:22px; ">
- <caption>전문의확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExebatch();
- ]]>
- </script>
- </button>
- <button id="btn_print" class="btn6_letter2" visibility="hidden" style="left:0px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- </button>
- </group>
- <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">특진의확인</caption>
- </group>
- <script type="javascript" ev:event="onmenu">
- <![CDATA[
- var popupParam = event.description;
- fOnmenu(popupParam);
- ]]>
- </script>
- </xhtml:body>
- </xhtml:html>
|