1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420 |
-
- function init()
- {
- if(checkOpener()) {
- document.title ="통합검사결과조회 - "+"[ "+getUserInfo("dutplcenm")+" "+getUserInfo("usernm")+" ]";
- }
- model.setValue("/root/send/data/singdata/srchpid", model.getProperty("pid"));
- model.setValue("/root/send/data/singdata/deptcd", model.getProperty("orddeptcd"));
- model.setValue("/root/send/data/singdata/deptnm", model.getProperty("deptnm"));
- model.setValue("/root/send/data/singdata/drnm", model.getProperty("medispclnm"));
- model.setValue("/root/send/data/singdata/drid", model.getProperty("drid"));
-
-
-
- if ( rdo_statecd.value == "Z" ) {
- grd_maindaily.setColHidden(grd_maindaily.colRef("lastreptdd"), false);
- grd_maindaily.setColHidden(grd_maindaily.colRef("lastreptdd1"), true);
-
- grd_maindaily.setColHidden(grd_maindaily.colRef("prcpdd1"), true);
- grd_maindaily.setColHidden(grd_maindaily.colRef("prcpdd"), false);
- grd_maindaily.setColHidden(grd_maindaily.colRef("execdd1"), true);
- grd_maindaily.setColHidden(grd_maindaily.colRef("execdd"), false);
-
-
- } else if ( rdo_statecd.value == "J" ) {
- grd_maindaily.setColHidden(grd_maindaily.colRef("execdd1"), false);
- grd_maindaily.setColHidden(grd_maindaily.colRef("execdd"), true);
-
- grd_maindaily.setColHidden(grd_maindaily.colRef("lastreptdd"), true);
- grd_maindaily.setColHidden(grd_maindaily.colRef("lastreptdd1"), false);
- grd_maindaily.setColHidden(grd_maindaily.colRef("prcpdd1"), true);
- grd_maindaily.setColHidden(grd_maindaily.colRef("prcpdd"), false);
-
-
- } else if ( rdo_statecd.value == "P" ) {
- grd_maindaily.setColHidden(grd_maindaily.colRef("prcpdd1"), false);
- grd_maindaily.setColHidden(grd_maindaily.colRef("prcpdd"), true);
-
- grd_maindaily.setColHidden(grd_maindaily.colRef("lastreptdd"), true);
- grd_maindaily.setColHidden(grd_maindaily.colRef("lastreptdd1"), false);
- grd_maindaily.setColHidden(grd_maindaily.colRef("execdd1"), true);
- grd_maindaily.setColHidden(grd_maindaily.colRef("execdd"), false);
- }
-
-
-
-
- aezfSetSuppDeptcd();
-
-
- model.setValue("/root/send/globalinstance/instance2", getUserInfo("dutplceinstcd") );
-
-
-
-
- fSetUserTermInit();
-
-
-
-
-
-
-
-
-
-
- cmb_wardcd.select(0);
- cmb_roomcd.select(0);
-
-
- model.setValue("/root/send/codeflag", "0102|");
-
- submit("TRMOB00013", false);
-
- model.setValue("/root/init/cmb_basecd/LB0102[1]/nm", " 검사분류별 누적조회");
-
- if ( model.getValue("/root/send/data/singdata/srchpid") != "" ) {
- if ( (model.getValue("/root/send/data/singdata/srchdate11") != "" )
- && (model.getValue("/root/send/data/singdata/srchdate22") != "" )
- && (model.getValue("/root/send/data/singdata/listflag2") != "" ) ) {
- model.setValue("/root/send/data/singdata/srchdate1", model.getValue("/root/send/data/singdata/srchdate11") );
- model.setValue("/root/send/data/singdata/srchdate2", model.getValue("/root/send/data/singdata/srchdate22") );
- model.setValue("/root/send/data/singdata/listflag", model.getValue("/root/send/data/singdata/listflag2") );
- }
- aezfGetSrchPatInfo("1", model.getValue ( "/root/send/data/singdata/srchpid" ), getUserInfo("dutplceinstcd"), "patchosinfo", "/root/main/patinfo/patinfolist" );
-
-
-
- model.setValue("/root/send/data/singdata/chkcheck1", "A");
-
-
-
-
-
-
- fSetUserDeptInit();
- fSetUserTabInit();
-
-
- }
-
-
- var instance1 = model.getValue("/root/send/globalinstance/instance1");
- model.setValue("/root/send/globalinstance/instance1","1000000000");
- model.setValue("/root/send/grupcdid","S001");
- if (submit("TRAEB00010")) {
- if (model.getValue("/root/main/codelist/item/cdid") == "Y") {
- btn_PathoRsltOld.setVisible(true);
- }
- }
- model.setValue("/root/send/globalinstance/instance1",instance1);
-
- model.setValue("/root/send/data/singdata/chkcheck", "");
-
-
-
-
- if(checkOpener()) {
- var authflagpid = opener.getParameter("opener_parameter_id");
- var authflag = opener.getParameter("opener_parameter_authflag");
- if (authflag == "N"){
-
- ipt_pid.setDisabled(true);
- button5.setVisible(false);
- btn_MyPatList.setVisible(false);
- button40.setVisible(false);
- button1.setVisible(false);
-
- model.setValue("/root/send/data/singdata/srchpid", authflagpid);
- aezfGetSrchPatInfo("1", model.getValue ( "/root/send/data/singdata/srchpid" ), getUserInfo("dutplceinstcd"), "patchosinfo", "/root/main/patinfo/patinfolist" );
-
- model.makeNode("/root/hidden/patinfo/patinfolist");
- copyNodesetType("/root/hidden/patinfo/patinfolist", "/root/main/patinfo/patinfolist" , "replace");
- }
- }
-
- model.refresh();
- }
- function fSetUserTabInit(){
- var chkbutton = "A";
-
-
-
- var AnswData = "분류별";
-
- if(AnswData != "" ) {
- if( AnswData == "분류별" ){
- btn_case1.selected = true;
- if ( chkbutton == "A" ){
- fGetHemoDailyList();
- }else if ( chkbutton == "B" ) {
- fGetPlgyDailyList();
- }else if ( chkbutton == "C" ) {
- fGetPhotDailyList();
- }else if ( chkbutton == "D" ) {
- fGetNuclDailyList();
- }else if ( chkbutton == "E" ) {
- fGetColonyDailyList();
- }else if ( chkbutton == "F" ) {
- fGetFuncDailyList();
- }else if ( chkbutton == "G" ) {
- fGetCellDailyList();
- }else {
- btn_case1.dispatch("DOMActivate");
- model.toggle("case1");
- }
- }
-
- }else{
- if ( chkbutton == "ALL" ) {
- fGetSytsRsltRefList("ALL","B");
- }
- }
- }
- function fGetHemoDailyList() {
- model.setValue("/root/send/data/singdata/chkcheck1", "A");
- fcheckyn2('A');
-
- btn_srch.dispatch("DOMActivate");
-
- }
- function fcheckyn2(gubn) {
- switch (gubn) {
-
- case "A" :
- model.setValue("/root/send/data/singdata/chkcheck","");
- model.setValue("/root/send/data/singdata/chkcheck2", ""); model.setValue("/root/send/data/singdata/chkcheck3", "");
- model.setValue("/root/send/data/singdata/chkcheck4", ""); model.setValue("/root/send/data/singdata/chkcheck5", "");
- model.setValue("/root/send/data/singdata/chkcheck6", ""); model.setValue("/root/send/data/singdata/chkcheck7", ""); break;
- case "B" :
- model.setValue("/root/send/data/singdata/chkcheck","");
- model.setValue("/root/send/data/singdata/chkcheck1", ""); model.setValue("/root/send/data/singdata/chkcheck3", "");
- model.setValue("/root/send/data/singdata/chkcheck4", ""); model.setValue("/root/send/data/singdata/chkcheck5", "");
- model.setValue("/root/send/data/singdata/chkcheck6", ""); model.setValue("/root/send/data/singdata/chkcheck7", ""); break;
- case "C" :
- model.setValue("/root/send/data/singdata/chkcheck","");
- model.setValue("/root/send/data/singdata/chkcheck1", ""); model.setValue("/root/send/data/singdata/chkcheck2", "");
- model.setValue("/root/send/data/singdata/chkcheck4", ""); model.setValue("/root/send/data/singdata/chkcheck5", "");
- model.setValue("/root/send/data/singdata/chkcheck6", ""); model.setValue("/root/send/data/singdata/chkcheck7", ""); break;
- case "D" :
- model.setValue("/root/send/data/singdata/chkcheck","");
- model.setValue("/root/send/data/singdata/chkcheck1", ""); model.setValue("/root/send/data/singdata/chkcheck2", "");
- model.setValue("/root/send/data/singdata/chkcheck3", ""); model.setValue("/root/send/data/singdata/chkcheck5", "");
- model.setValue("/root/send/data/singdata/chkcheck6", ""); model.setValue("/root/send/data/singdata/chkcheck7", ""); break;
- case "E" :
- model.setValue("/root/send/data/singdata/chkcheck","");
- model.setValue("/root/send/data/singdata/chkcheck1", ""); model.setValue("/root/send/data/singdata/chkcheck2", "");
- model.setValue("/root/send/data/singdata/chkcheck3", ""); model.setValue("/root/send/data/singdata/chkcheck4", "");
- model.setValue("/root/send/data/singdata/chkcheck6", ""); model.setValue("/root/send/data/singdata/chkcheck7", ""); break;
- case "F" :
- model.setValue("/root/send/data/singdata/chkcheck","");
- model.setValue("/root/send/data/singdata/chkcheck1", ""); model.setValue("/root/send/data/singdata/chkcheck2", "");
- model.setValue("/root/send/data/singdata/chkcheck3", ""); model.setValue("/root/send/data/singdata/chkcheck4", "");
- model.setValue("/root/send/data/singdata/chkcheck5", ""); model.setValue("/root/send/data/singdata/chkcheck7", ""); break;
- case "G" :
- model.setValue("/root/send/data/singdata/chkcheck","");
- model.setValue("/root/send/data/singdata/chkcheck1", ""); model.setValue("/root/send/data/singdata/chkcheck2", "");
- model.setValue("/root/send/data/singdata/chkcheck3", ""); model.setValue("/root/send/data/singdata/chkcheck4", "");
- model.setValue("/root/send/data/singdata/chkcheck5", ""); model.setValue("/root/send/data/singdata/chkcheck6", ""); break;
- default : break;
- }
- }
-
- function fSetUserSeriesButtonInit(){
-
- var AnswData = fGetIntefeAnsw("012");
-
- if(AnswData != "" ) {
-
- if( AnswData == "전체" ){
- return "ALL";
- }
- if( AnswData == "진검" ){
- return "A";
- }
- if( AnswData == "병리" ){
- return "B";
- }
- if( AnswData == "영상" ){
- return "C";
- }
- if( AnswData == "핵체외" ){
- return "D";
- }
- if( AnswData == "내시경" ){
- return "E";
- }
- if( AnswData == "기능" ){
- return "F";
- }
- if( AnswData == "미생물" ){
- return "G";
- }
-
- }else {
- return "ALL";
- }
-
- }
-
- function aezfSetSuppDeptcd() {
- var dutplcecd = getUserInfo("dutplcecd");
-
-
- var selectplcecd = "";
-
- if ( selectplcecd == "" ) {
- selectplcecd = dutplcecd;
-
- }
-
- model.setValue("/root/send/globalinstance/instance1", selectplcecd);
- }
-
-
- function fGetSytsRsltRefList(chkcheck, srchflag){
- model.setValue("/root/send/data/singdata/chkcheck", chkcheck);
-
-
- if (srchflag == "B") {
-
- model.toggle("case1");
-
- if (chkcheck == "A") {
- datagrid2.setVisible(false);
-
-
- grd_subresultdetail1.setVisible(true);
- } else {
- datagrid2.setVisible(false);
- grd_subresultdetail1.setVisible(true);
- }
-
-
- fGetWideListX1(grd_maindaily);
-
-
- var check = fGetMainListCondiCheck_Case1();
- if ( check == "0" ) return true;
-
- if ( model.getValue("/root/send/data/singdata/chkcheck") == "ALL" ) {
- fcheckyn();
- }
-
-
- fInitGrid();
-
-
-
-
-
-
-
-
- model.setValue("/root/send/data/singdata/srchflag", srchflag);
- submit("TRAER00830",false);
-
- model.makeNode("/root/main/patinfo/patinfolist");
- copyNodesetType("/root/main/patinfo/patinfolist", "/root/hidden/patinfo/patinfolist" , "replace");
-
-
- var srchLength1 = model.instances.item(0).selectNodes( "/root/main/ordlist1/maindailylist" ).length;
-
-
- if ( srchLength1 > 0 ) {
- var orddd = model.getValue("/root/main/baseorddd/initorddd/orddd");
- var gubun = model.getValue("/root/main/baseorddd/initorddd/gubun");
-
- var srchLength1 = model.instances.item(0).selectNodes( "/root/main/ordlist1/maindailylist" ).length;
-
-
- for ( var i = 1; i <= srchLength1; i++ ) {
- grd_maindaily.setRowStyle( i , "data" , "background-color" , "#ffffff");
- }
-
- for ( var i = 1; i <= srchLength1; i++ ) {
-
- if ( model.getValue("/root/main/ordlist1/maindailylist[" + i + "]/signno") == "") {
- var signno = 0;
- }else {
- var signno = parseInt(model.getValue("/root/main/ordlist1/maindailylist[" + i + "]/signno"));
- }
- if ( signno > 0 ) {
-
- grd_maindaily.setRowStyle( i , "data" , "background-color" , "#b9e5fb");
-
- }
- }
-
-
-
-
- var flag = "N";
- for ( var i = 1; i <= srchLength1; i++ ) {
-
- var execprcpuniqno = model.getValue("/root/main/ordlist1/maindailylist[" + i + "]/execprcpuniqno");
- var signno = model.getValue("/root/main/ordlist1/maindailylist[" + i + "]/signno");
-
- if ( execprcpuniqno != "0" && signno != "0" && signno != "" ) {
-
- for ( var j = 1; j <= srchLength1; j++ ) {
-
- var vsignno = model.getValue("/root/main/ordlist1/maindailylist[" + j + "]/signno");
- if ( i != j && signno == vsignno ) {
-
- model.setValue("/root/main/ordlist1/maindailylist[" + j + "]/check", "N");
- flag = "Y";
- }
-
- }
- }
-
- if ( flag == "Y" ) break;
-
- }
- model.refresh();
-
-
- fGetResultContinueListInit1();
-
-
-
- } else {
- model.refresh();
- }
-
-
-
-
- } else if (srchflag == "G") {
- model.toggle("case5");
-
- if (chkcheck == "A") {
- datagrid2.setVisible(false);
- grp_makedset.setVisible(false);
- grd_subresultdetail1.setVisible(false);
- grd_subresultdetail2.setVisible(true);
- } else {
- datagrid2.setVisible(false);
- grp_makedset.setVisible(false);
- grd_subresultdetail2.setVisible(false);
- grd_subresultdetail1.setVisible(true);
- }
-
-
-
- fGetWideListX1(grd_maindaily);
-
-
- var check = fGetMainListCondiCheck_Case1();
- if ( check == "0" ) return true;
-
- if ( model.getValue("/root/send/data/singdata/chkcheck") == "ALL" ) {
- fcheckyn();
- }
-
- fInitGrid();
-
-
-
-
-
-
-
-
- model.setValue("/root/send/data/singdata/srchflag", srchflag);
- submit("TRAER00830",false);
-
- model.makeNode("/root/main/patinfo/patinfolist");
- copyNodesetType("/root/main/patinfo/patinfolist", "/root/hidden/patinfo/patinfolist" , "replace");
-
- var srchLength1 = model.instances.item(0).selectNodes( "/root/main/ordlist1/maindailylist" ).length;
- var cnt = 0;
-
- if ( srchLength1 > 0 ) {
- var orddd = model.getValue("/root/main/baseorddd/initorddd/orddd");
- var gubun = model.getValue("/root/main/baseorddd/initorddd/gubun");
-
- var srchLength1 = model.instances.item(0).selectNodes( "/root/main/ordlist1/maindailylist" ).length;
-
-
- for ( var i = 1; i <= srchLength1; i++ ) {
- datagrid1.setRowStyle( i , "data" , "background-color" , "#ffffff");
- }
-
-
- for ( var i = 1; i <= srchLength1; i++ ) {
- if ( model.getValue("/root/main/ordlist1/maindailylist[" + i + "]/signno") == "") {
- var signno = 0;
- }else {
- var signno = parseInt(model.getValue("/root/main/ordlist1/maindailylist[" + i + "]/signno"));
- }
- if ( signno > 0 ) {
- datagrid1.setRowStyle( i , "data" , "background-color" , "#b9e5fb");
- }
- }
-
-
-
-
-
- var flag = "N";
- for ( var i = 1; i <= srchLength1; i++ ) {
-
- var execprcpuniqno = model.getValue("/root/main/ordlist1/maindailylist[" + i + "]/execprcpuniqno");
- var signno = model.getValue("/root/main/ordlist1/maindailylist[" + i + "]/signno");
-
-
-
- if ( execprcpuniqno != "0" && signno != "0" && signno != "" ) {
-
- for ( var j = 1; j <= srchLength1; j++ ) {
-
- var vsignno = model.getValue("/root/main/ordlist1/maindailylist[" + j + "]/signno");
-
-
- if ( i != j && signno == vsignno ) {
- model.setValue("/root/main/ordlist1/maindailylist[" + j + "]/check", "N");
- flag = "Y";
- }
-
- }
- }
-
- if ( flag == "Y" ) break;
-
- }
- model.refresh();
-
-
- fGetResultContinueListInit2();
-
-
- fSort2();
- } else {
- model.refresh();
- }
-
-
-
-
-
- } else if (srchflag == "S") {
-
-
- grp_makedset.setVisible(false);
- datagrid2.setVisible(true);
- grd_subresultdetail1.setVisible(false);
- model.setValue("/root/send/setdata/setkindcd", "D");
-
-
- } else if (srchflag == "P") {
-
-
- var check = fGetMainListCondiCheck_Case4();
- if ( check == "0" ) return true;
-
- }
-
- }
-
- function fGetIntefeAnsw(qestcd){
-
- model.setValue("/root/send/interqestcd", qestcd);
-
- submit("TRMMB01104");
- var answvalnm = model.getValue("/root/main/interface/answvalnm");
-
-
-
- return answvalnm ;
- }
- function aezfGetSrchPatInfo(cond1, cond2, cond3, cond99, rtnXpath) {
-
- model.makeValue ( "/root/send/cond1", cond1 );
- model.makeValue ( "/root/send/cond2", cond2 );
- model.makeValue ( "/root/send/cond3", cond3 );
- model.makeValue ( "/root/send/cond99", cond99 );
- if (!submit ( "TRMMO02501",false )) {
- model.resetInstanceNode (rtnXpath );
- model.refresh();
- return "0";
- }else {
- return "1";
- }
-
- }
- function aezfGridSetColor(path, chkcol, chkval, imagename ) {
-
- var srchLength1 = model.instances.item(0).selectNodes( path ).length;
- for ( var i = 1; i <= srchLength1; i++ ) {
- if ( model.getValue ( path+"["+ i +"]/"+chkcol ) == chkval ) {
- grd_subresultdetail1.setRowStyle(i, "data", "background-image", "../../../com/commonweb/images/"+imagename);
- grd_subresultdetail1.setRowStyle(i, "data", "background-repeat", "repeat-x");
-
- } else {
- grd_subresultdetail1.setRowStyle(i, "data", "background-image", "");
-
- }
- }
- }
- function aezfSetFontRowStyle( gridID , styleFlag , data , colRef , control ) {
- var style = new Array("#fcd2c1" , "#ffe79d" , "#f3e1bf" , "#7BE6B7" , "#b9e5fb" , "#f7a08b" , "#fec34d" ,
- "blue" ,
- "#c8e67b" ,
- "green" ,
- "#ff9933" ,
- "red" ,
- "#9999cc",
- "#5A5A5A",
- "#000000"
- );
- var styleFlags = styleFlag.split("^");
- var datas = data.split("^");
-
- if( control == null || control == "" )
- control = "equal";
-
- var controls = control.split("^");
- gridObj = document.allElement.item(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.labelMatrix(i , gridObj.colRef(colRef)) < dataValue ) {
-
- gridObj.setRowStyle( i , "data" , "color" , styleValue);
- }
- break;
- case "smallThen":
- if( gridObj.labelMatrix(i , gridObj.colRef(colRef)) <= dataValue ) {
-
- gridObj.setRowStyle( i , "data" , "color" , styleValue);
- }
- break;
- case "bigger":
- if( gridObj.labelMatrix(i , gridObj.colRef(colRef)) > dataValue ) {
-
- gridObj.setRowStyle( i , "data" , "color" , styleValue);
- }
- break;
- case "biggerThen":
- if( gridObj.labelMatrix(i , gridObj.colRef(colRef)) >= dataValue ) {
-
- gridObj.setRowStyle( i , "data" , "color" , styleValue);
- }
- break;
-
- case "equalBold":
- if( gridObj.labelMatrix(i , gridObj.colRef(colRef)) == dataValue ) {
- gridObj.setRowStyle( i , "data" , "color" , styleValue);
- gridObj.setRowStyle( i , "data" , "font-weight" , "bold");
- }
- case "equal":
- if( gridObj.labelMatrix(i , gridObj.colRef(colRef)) == dataValue ) {
- gridObj.setRowStyle( i , "data" , "color" , styleValue);
- }
- break;
- }
- }
- }
-
- }
- function aezfSetRowStyle( gridID , styleFlag , data , colRef , control ) {
- var style = new Array("#fcd2c1" , "#ffe79d" , "#f3e1bf" , "#7BE6B7" , "#b9e5fb" , "#f7a08b" , "#fec34d" , "#dec6a4" , "#c8e67b" ,
- "#43c8f5" , "#ff9933" , "#3399ff" , "#9999cc" , "#FFC8C8" , "#fab7bf" , "#ffff00" , "#ccffcc" , "#FF9A00");
- var styleFlags = styleFlag.split("^");
- var datas = data.split("^");
-
- if( control == null || control == "" )
- control = "equal";
-
- var controls = control.split("^");
- gridObj = document.allElement.item(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.labelMatrix(i , gridObj.colRef(colRef)) < dataValue ) {
-
- gridObj.setRowStyle( i , "data" , "background-color" , styleValue);
- }
- break;
- case "smallThen":
- if( gridObj.labelMatrix(i , gridObj.colRef(colRef)) <= dataValue ) {
-
- gridObj.setRowStyle( i , "data" , "background-color" , styleValue);
- }
- break;
- case "bigger":
- if( gridObj.labelMatrix(i , gridObj.colRef(colRef)) > dataValue ) {
-
- gridObj.setRowStyle( i , "data" , "background-color" , styleValue);
- }
- break;
- case "biggerThen":
- if( gridObj.labelMatrix(i , gridObj.colRef(colRef)) >= dataValue ) {
-
- gridObj.setRowStyle( i , "data" , "background-color" , styleValue);
- }
- break;
-
- case "equal":
- if( gridObj.labelMatrix(i , gridObj.colRef(colRef)) == dataValue ) {
- gridObj.setRowStyle( i , "data" , "background-color" , styleValue);
- }
- break;
- }
- }
- }
-
- }
-
- function fGetNSeriesResultRef(){
-
- var vText = model.getValue("/root/send/data/singdata/srchpid");
-
-
- if(vText == "" ){
-
- messageBox("등록번호를","C001","") ;
- return;
- }
-
- fInitDatagrid2();
-
-
- fGetMainSrchPatInfo();
-
-
- model.setValue("/root/send/setdata/startdd", model.getValue("/root/send/data/singdata/srchdate1"));
- model.setValue("/root/send/setdata/enddd", model.getValue("/root/send/data/singdata/srchdate2"));
- model.setValue("/root/send/setdata/pid", model.getValue("/root/send/data/singdata/srchpid"));
-
- model.setValue("/root/send/setdata/setno", "");
- model.setValue("/root/send/setdata/tclscdlist", cmb_mdl.value);
- model.setValue("/root/send/setdata/workflag", "1");
-
-
- var offset = parseInt(model.getValue("root/page3/curpage"));
-
- if(offset == 1)
- {
- offset = offset - 1;
- }
- else
- {
- offset = (offset - 1) * 10;
- }
-
- model.removenode("/root/send/setdata/offset");
- model.removenode("/root/send/setdata/pagesize");
- model.makeValue("/root/send/setdata/offset", String(offset));
- model.makeValue("/root/send/setdata/pagesize", model.getValue("/root/page3/pagesize"));
-
-
- submit("TRMOB00017", false);
-
- var maxpage = parseInt(model.getValue("/root/hidden/temp/rsltlist/getacmltestlist2cnt/maxcnt"));
-
- if(maxpage < 10)
- {
- model.setValue("/root/page3/maxpage", "1");
- }
- else
- {
- maxpage = (maxpage / 10) - ((maxpage % 10) / 10) + 1;
- model.setValue("/root/page3/maxpage", String(maxpage));
- }
-
-
- var gridCaption = model.getValue("/root/hidden/temp/rsltlist/header/caption");
-
- if(gridCaption == "") return;
-
- var gridColRef = model.getValue("/root/hidden/temp/rsltlist/header/colref");
- var gridColRefArray = gridColRef.split("^");
-
- var gridColType = model.getValue("/root/hidden/temp/rsltlist/header/type");
-
-
- var gridColTypeArray = gridColType.split("^");
-
-
-
- for( var i = 1; i < gridColRefArray.length; i++ ) {
- datagrid2.addColumn("ref:" + gridColRefArray[i] + "; type:"+gridColTypeArray[i]+"; ", false);
-
- }
- datagrid2.setRowHeight(0, 35);
-
- var col = datagrid2.cols;
-
-
-
- var node = instance1.selectSingleNode("/root/main");
-
- node.replaceChild(instance1.selectSingleNode("/root/hidden/temp/rsltlist"), instance1.selectSingleNode("/root/main/rsltlist"));
-
- model.refresh();
- var algridCaption = gridCaption.split("^");
- algridCaption.shift();
- gridCaption = algridCaption.join("^");
-
- datagrid2.setCaption(gridCaption);
-
- fReMake();
-
- }
- function fInitDatagrid2() {
- var cols = datagrid2.cols-datagrid2.fixedCols;
- var rows = datagrid2.rows-datagrid2.fixedRows;
-
- for( var i = 0; i < cols; i++ ) {
- datagrid2.removeColumn(false);
- }
-
-
-
-
-
- model.removeNodeset("/root/main/rsltlist");
-
- model.makeNode("/root/main/rsltlist/row");
- model.refresh();
- }
- function fReMake(){
- xx = 0;
-
- for(i=1;i<datagrid2.rows;i++){
- for(j=5;j<datagrid2.cols;j++){
-
- var vJudg = model.getValue("/root/main/rsltlist/row["+i+"]/judg" + xx);
- if(vJudg == "H"){
- datagrid2.setCellStyle("color",i,j,i,j, "red");
- }
- else if(vJudg == "L"){
- datagrid2.setCellStyle("color",i,j,i,j, "blue");
- }
- xx ++;
- }
- xx = 0;
- }
- }
- function fSort() {
-
- grd_maindaily.rebuild();
-
- var listflag = model.getValue("/root/send/data/singdata/listflag");
- var col = 0;
-
- if (listflag == "P") {
- col = grd_maindaily.colRef("prcpdd1");
- } else if (listflag == "J") {
-
- col = grd_maindaily.colRef("execdd1");
- } else {
- col = grd_maindaily.colRef("lastreptdd");
- }
-
- grd_maindaily.setColSort(col, "desc");
- grd_maindaily.setSort(1, col, grd_maindaily.rows-1, grd_maindaily.cols-1, "usersort");
- grd_maindaily.gridToInstance();
-
- }
- function fSort2() {
-
- var listflag = model.getValue("/root/send/data/singdata/listflag");
- var col = 0;
-
- if (listflag == "P") {
-
- } else if (listflag == "J") {
-
-
- } else {
-
- }
-
- }
- function fChngSrchRoomCd() {
-
- if ( model.getValue("/root/send/data/singdata/wardcd") == "" ) return;
-
-
- model.resetInstanceNode("/root/init/cmb_room/initexecroom");
- submit("TRAER00802");
- }
- function fcheckyn() {
- if ( model.getValue("/root/send/data/singdata/chkcheck") == "ALL" ) {
-
- model.setValue("/root/send/data/singdata/chkcheck1",""); model.setValue("/root/send/data/singdata/chkcheck2","");
- model.setValue("/root/send/data/singdata/chkcheck3",""); model.setValue("/root/send/data/singdata/chkcheck4","");
- model.setValue("/root/send/data/singdata/chkcheck5",""); model.setValue("/root/send/data/singdata/chkcheck6","");
- model.setValue("/root/send/data/singdata/chkcheck7",""); model.setValue("/root/send/data/singdata/chkcheck8","");
- }
-
- }
- function fGetMainListCondiCheck_Case1() {
- if ( model.getValue("/root/send/data/singdata/srchpid") == "" ) {
-
-
-
- model.setfocus( "ipt_pid" );
- return "0";
- }
- }
- function fGetMainListCondiCheck_Case4() {
-
- if ( model.getValue("/root/send/data/singdata/srchpid") == "" ) {
-
-
- model.setfocus( "ipt_pid" );
- return "0";
- }
- }
- function fGetMainDistinctDailyList() {
- datagrid2.setVisible(false);
- grd_subresultdetail1.setVisible(true);
-
-
-
- fGetWideListX1(grd_maindaily);
-
-
- var check = fGetMainListCondiCheck_Case1();
- if ( check == "0" ) return true;
-
- if ( model.getValue("/root/send/data/singdata/chkcheck") == "ALL" ) {
- fcheckyn();
- }
-
-
- fInitGrid();
-
- model.setValue("/root/send/data/singdata/tabflag","distinctdaily");
-
-
-
-
- model.setValue("/root/send/data/singdata/chkcheck1", "A");
-
-
- submit("TRMOB00014");
-
- }
- function fInitGrid() {
- model.resetInstanceNode("/root/main/ordlist1/maindailylist");
- model.resetInstanceNode("/root/main/ordlist2/mainserious");
- model.resetInstanceNode("/root/main/ordlist5/mainseriouslist");
- model.resetInstanceNode("/root/main/ordlist3/mainset");
- model.resetInstanceNode("/root/main/ordlist4/mainprogress");
- model.resetInstanceNode("/root/main/subordlist1/subresultdetail1");
-
-
-
- if ( btn_case1.selected == true ) {
-
-
- if ( rdo_statecd.value == "Z" ) {
- grd_maindaily.setColHidden(grd_maindaily.colRef("lastreptdd"), false);
- grd_maindaily.setColHidden(grd_maindaily.colRef("lastreptdd1"), true);
-
- grd_maindaily.setColHidden(grd_maindaily.colRef("prcpdd1"), true);
- grd_maindaily.setColHidden(grd_maindaily.colRef("prcpdd"), false);
- grd_maindaily.setColHidden(grd_maindaily.colRef("execdd1"), true);
- grd_maindaily.setColHidden(grd_maindaily.colRef("execdd"), false);
-
-
- } else if ( rdo_statecd.value == "J" ) {
- grd_maindaily.setColHidden(grd_maindaily.colRef("execdd1"), false);
- grd_maindaily.setColHidden(grd_maindaily.colRef("execdd"), true);
-
- grd_maindaily.setColHidden(grd_maindaily.colRef("lastreptdd"), true);
- grd_maindaily.setColHidden(grd_maindaily.colRef("lastreptdd1"), false);
- grd_maindaily.setColHidden(grd_maindaily.colRef("prcpdd1"), true);
- grd_maindaily.setColHidden(grd_maindaily.colRef("prcpdd"), false);
-
- } else if ( rdo_statecd.value == "P" ) {
- grd_maindaily.setColHidden(grd_maindaily.colRef("prcpdd1"), false);
- grd_maindaily.setColHidden(grd_maindaily.colRef("prcpdd"), true);
-
- grd_maindaily.setColHidden(grd_maindaily.colRef("lastreptdd"), true);
- grd_maindaily.setColHidden(grd_maindaily.colRef("lastreptdd1"), false);
- grd_maindaily.setColHidden(grd_maindaily.colRef("execdd1"), true);
- grd_maindaily.setColHidden(grd_maindaily.colRef("execdd"), false);
- }
- }
- }
- function fGetMainDailyList() {
- btn_case1.selected = true;
- model.toggle("case1");
- datagrid2.setVisible(false);
- grd_subresultdetail1.setVisible(true);
-
-
- var check = fGetMainListCondiCheck_Case1();
- if ( check == "0" ) return true;
-
- if ( model.getValue("/root/send/data/singdata/chkcheck") == "ALL" ) {
- fcheckyn();
- }
-
- fInitGrid();
-
-
-
-
- fGetMainSrchPatInfo();
-
- model.setValue("/root/send/data/singdata/tabflag","daily");
-
-
-
- model.setValue("/root/send/data/singdata/chkcheck1", "A");
-
- var offset = parseInt(model.getValue("root/page/curpage"));
-
- if(offset == 1)
- {
- offset = offset - 1;
- }
- else
- {
- offset = (offset - 1) * 10;
- }
- model.removenode("/root/send/maindata/offset");
- model.removenode("/root/send/maindata/pagesize");
- model.makeValue("/root/send/data/singdata/offset", String(offset));
- model.makeValue("/root/send/data/singdata/pagesize", model.getValue("root/page/pagesize"));
-
- submit("TRMOB00015", false);
-
- var maxpage = parseInt(model.getValue("/root/main/ordlist1/maindailylistcnt/maxcnt"));
- if(maxpage < 10)
- {
- model.setValue("/root/page/maxpage", "1");
- }
- else
- {
- maxpage = (maxpage / 10) - ((maxpage % 10) / 10) + 1;
- model.setValue("/root/page/maxpage", String(maxpage));
- }
-
- var srchLength1 = model.instances.item(0).selectNodes( "/root/main/ordlist1/maindailylist" ).length;
-
-
- if ( srchLength1 > 0 ) {
- submit("TRAER00811");
-
- var orddd = model.getValue("/root/init/baseorddd/initorddd/orddd");
- var gubun = model.getValue("/root/init/baseorddd/initorddd/gubun");
-
- var srchLength1 = model.instances.item(0).selectNodes( "/root/main/ordlist1/maindailylist" ).length;
-
-
- for ( var i = 1; i <= srchLength1; i++ ) {
- grd_maindaily.setRowStyle( i , "data" , "background-color" , "#ffffff");
- }
-
- for ( var i = 1; i <= srchLength1; i++ ) {
-
- if ( model.getValue("/root/main/ordlist1/maindailylist[" + i + "]/signno") == "") {
- var signno = 0;
- }else {
- var signno = parseInt(model.getValue("/root/main/ordlist1/maindailylist[" + i + "]/signno"));
- }
- if ( signno > 0 ) {
-
- grd_maindaily.setRowStyle( i , "data" , "background-color" , "#b9e5fb");
-
- }
- }
-
-
-
-
-
-
- var flag = "N";
- for ( var i = 1; i <= srchLength1; i++ ) {
-
- var execprcpuniqno = model.getValue("/root/main/ordlist1/maindailylist[" + i + "]/execprcpuniqno");
- var signno = model.getValue("/root/main/ordlist1/maindailylist[" + i + "]/signno");
-
-
-
- if ( execprcpuniqno != "0" && signno != "0" && signno != "" ) {
-
- for ( var j = 1; j <= srchLength1; j++ ) {
-
- var vsignno = model.getValue("/root/main/ordlist1/maindailylist[" + j + "]/signno");
-
-
- if ( i != j && signno == vsignno ) {
-
- model.setValue("/root/main/ordlist1/maindailylist[" + j + "]/check", "N");
- flag = "Y";
- }
-
- }
- }
-
- if ( flag == "Y" ) break;
-
- }
- model.refresh();
-
-
- fGetResultContinueListInit1();
-
-
-
- }
-
-
-
-
-
-
-
-
- }
- function fInitial_subordlist() {
- model.removeNodeset("/root/main/subordlist1/subresultdetail1");
- model.removeNodeset("/root/main/subordlist2/subresultdetail1");
- model.removeNodeset("/root/send/maindata");
- model.makeNode("/root/send/maindata");
- }
- function fSetSubDetailGrid()
- {
-
-
-
-
-
- var srchLength1 = model.instances.item(0).selectNodes( "/root/main/subordlist1/subresultdetail1" ).length;
- for ( var i = 1; i <= srchLength1; i++ ) {
-
- grd_subresultdetail1.setRowStyle( i , "data" , "background-color" , "#FFFFFF");
- grd_subresultdetail1.setRowStyle( i , "data" , "color" , "#000000");
- }
-
-
-
-
- aezfGridSetColor( "/root/main/subordlist1/subresultdetail1", "judgmark", "T", "tab_hide.gif");
-
-
- aezfSetFontRowStyle("grd_subresultdetail1" , "15" , "T" , "judgmark" );
-
-
-
- aezfSetRowStyle("grd_subresultdetail1" , "5" , "P" , "judgmark" );
-
- aezfSetRowStyle("grd_subresultdetail1" , "12" , "Q" , "judgmark" );
-
-
-
- aezfSetFontRowStyle("grd_subresultdetail1" , "7" , "L" , "judgmark2" );
- aezfSetFontRowStyle("grd_subresultdetail1" , "11" , "H" , "judgmark2" );
-
-
- for ( var i = 1; i <= srchLength1; i++ ) {
-
- if ( model.getValue("/root/main/subordlist1/subresultdetail1["+ i +"]/judgmark") == "" ||
- model.getValue("/root/main/subordlist1/subresultdetail1["+ i +"]/judgmark") == "T" ||
- model.getValue("/root/main/subordlist1/subresultdetail1["+ i +"]/judgmark") == "P"
- ) {
-
- }else {
-
-
- }
- }
-
- fGetHLAList();
- }
- function fGetHLAList() {
- if ( btn_case1.selected) {
- var cnt = 0;
-
- if ( grd_maindaily.rows >= grd_maindaily.fixedRows ) {
- var loop = grd_maindaily.rows - grd_maindaily.fixedRows;
- for( var i = 1 ; i <= loop ; i++ ) {
- if ( model.getValue("/root/main/ordlist1/maindailylist[" + i + "]/hla") == "Y" ) cnt++;
- }
- }
-
- if ( cnt > 0 ) {
- model.makeValue("/root/hidden/refparam/pid" , model.getValue("/root/send/data/singdata/srchpid"));
-
-
- return;
- }
- }else {
- return;
- }
- }
- function fClickResultList(maingridlistid) {
- if ( maingridlistid.row == 0 ) return;
-
- if ( maingridlistid.row >= maingridlistid.fixedRows ) {
-
- var row = maingridlistid.row;
-
-
- if ( btn_case1.selected == true ) {
-
- fGetWideListX1(grd_maindaily);
- fInitial_subordlist();
- model.refresh();
-
-
- var loop = grd_maindaily.rows - grd_maindaily.fixedRows;
-
- for( var i = 1 ; i <= loop ; i++ ) {
- model.makeValue("/root/main/ordlist1/maindailylist[" + i + "]/level","3");
- }
-
-
-
- model.makeValue("/root/main/ordlist1/maindailylist[" + row + "]/srchpid", model.getValue("/root/send/data/singdata/srchpid"));
- model.makeValue("/root/main/ordlist1/maindailylist[" + row + "]/dutplceinstcd", model.getValue("/root/send/globalinstance/instance2"));
-
- var nodeList = instance1.selectNodes("/root/main/ordlist1/maindailylist["+row+"]");
-
- model.copyNode("/root/send/maindata", "/root/main/ordlist1/maindailylist["+row+"]");
-
-
-
-
-
-
- var offset = parseInt(model.getValue("root/page2/curpage"));
-
- if(offset == 1)
- {
- offset = offset - 1;
- }
- else
- {
- offset = (offset - 1) * 10;
- }
-
- model.removenode("/root/send/maindata/offset");
- model.removenode("/root/send/maindata/pagesize");
- model.makeValue("/root/send/maindata/offset", String(offset));
- model.makeValue("/root/send/maindata/pagesize", model.getValue("root/page2/pagesize"));
-
-
- submit("TRMOB00016", false);
-
- var maxpage = parseInt(model.getValue("/root/main/subordlist1/subresultdetail1cnt/maxcnt"));
-
- if(maxpage < 10)
- {
- model.setValue("/root/page2/maxpage", "1");
- }
- else
- {
- maxpage = (maxpage / 10) - ((maxpage % 10) / 10) + 1;
- model.setValue("/root/page2/maxpage", String(maxpage));
- }
-
-
- model.refresh();
-
- fSetSubDetailGrid();
- }
- }
- }
- function fSetUserDeptInit(){
-
-
-
- var AnswData = "진료과";
- if(AnswData != "" ) {
-
- if( AnswData == "전체" ){
- model.setValue("/root/send/data/singdata/deptcd" , "");
- }
- }
- }
- function fSetUserTermInit(){
-
-
- var AnswData = "2주";
- if(AnswData != "" ) {
- if(AnswData == "3개월"){
- model.setValue("/root/send/data/term", "90");
- }
- if(AnswData == "6개월"){
- model.setValue("/root/send/data/term", "180");
- }
- if(AnswData =="9개월"){
- model.setValue("/root/send/data/term", "270");
- }
- if(AnswData == "1년"){
- model.setValue("/root/send/data/term", "365");
- }
- if(AnswData == "2년"){
- model.setValue("/root/send/data/term", "730");
- }
- if(AnswData == "1주"){
- model.setValue("/root/send/data/term", "7");
- }
- if(AnswData == "2주"){
- model.setValue("/root/send/data/term", "14");
- }
-
- ipt_date2.setValue(getCurrentDate());
- var date2 = ipt_date2.value;
- var term = model.getValue("/root/send/data/term");
- ipt_date1.setValue(date2.toDate().getAddDate(-term,"D").getDateFormat("YYYYMMDD") );
-
- }else {
-
- ipt_date1.setValue(getCurrentDate());
- var vRsrvdd = ipt_date1.value ;
- vRsrvdd = vRsrvdd.toDate("YYYYMMDD");
- vRsrvdd = vRsrvdd.getAddDate(-90);
- ipt_date1.setValue(vRsrvdd.getDateFormat());
- ipt_date2.setValue(getCurrentDate());
- model.setValue("/root/send/data/term", 90);
- }
- }
- function fGetWideListX1(grd1) {
- var extnGrdWidht2 = 459;
- grd1.setAttribute("width", extnGrdWidht2);
- }
|