1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354 |
- <?xml version="1.0" encoding="utf-8"?>
- <Script type="xscript4.0"><![CDATA[/*
- 24시간 업무보고 (SMMNB01200.xrw - JScript )
- - Version :
- 1) : Ver.1.00.01
- */
- var GRD_INPTLIST_FIXCOL = 15;
- var dutplcecd = sysf_getUserInfo("dutplcecd");
- var deptcd = "";
- var erdeptflag =""; //칠곡에는 null으로 고정. 값 셋팅해주는 곳 없음.
- var erdeptcd="";
- var erdeptnm="";
- var cnt = 0;
- var formPath;
- /**
- * @group :
- * @ver : 2007.08.13
- * @by : 하재륜
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 외래진료 현황
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSearch_otptlist(){ // 통합통계 외래환자수 서브미션 태움 수정 by 박영우 20091215
-
- ds_main_outpatinfo_outpatlist.clearData();
- //messageBox("개발중","I009");
- if ( utlf_isNull(ds_temp.getColumn(0, "srchdd")) ){
- sysf_messageBox("기간","I003");//필수입력입니다
- return;
- }
-
- ds_send_reqdata.setColumn(0, "srchdd", ds_temp.getColumn(0, "srchdd") );
- ds_send_reqdata.setColumn(0, "menu", "SUM");
- if ( !utlf_isNull( ds_temp.getColumn(0, "orddeptcd") ) && ds_temp.getColumn(0, "orddeptcd") != "%") {
- ds_send_reqdata.setColumn(0, "orddeptcd", ds_temp.getColumn(0, "orddeptcd"));
- }
- if ( !utlf_isNull( ds_temp.getColumn(0, "orddrid") ) && ds_temp.getColumn(0, "orddrid") != "%") {
- ds_send_reqdata.setColumn(0, "orddrid", ds_temp.getColumn(0, "orddrid"));
- }else{
- ds_send_reqdata.setColumn(0, "orddrid", "");
- }
- ds_send.setColumn(0, "orddd",group2.ipt_orddd.value); //보고일자
-
- var oParam = {};
- oParam.id = "TRSNO00101";
- oParam.service = "stsenrapp.StsOutMngt";
- oParam.method = "reqGetOutPatlist";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_outpatinfo_outpatlist=outpatlist";
- oParam.async = false;
- //oParam.callback = "cf_TRSNO00101";
- tranf_submit(oParam);
-
- ds_main_outpatinfo_outpatlist.rowposition = -1;
-
- for( var i=0 ; i<ds_main_outpatinfo_outpatlist.rowcount ; i++ ){
- ds_main_outpatinfo_outpatlist.setColumn(i, "fsabsntrsrvrate", ds_main_outpatinfo_outpatlist.getColumn(i, "fsabsntrsrvrate").replace("%", ""));
- ds_main_outpatinfo_outpatlist.setColumn(i, "secabsntrsrvrate", ds_main_outpatinfo_outpatlist.getColumn(i, "secabsntrsrvrate").replace("%", ""));
- ds_main_outpatinfo_outpatlist.setColumn(i, "sltotptrate", ds_main_outpatinfo_outpatlist.getColumn(i, "sltotptrate").replace("%", ""));
- ds_main_outpatinfo_outpatlist.setColumn(i, "genotptrate", ds_main_outpatinfo_outpatlist.getColumn(i, "genotptrate").replace("%", ""));
- ds_main_outpatinfo_outpatlist.setColumn(i, "absntrsrvrate", ds_main_outpatinfo_outpatlist.getColumn(i, "absntrsrvrate").replace("%", ""));
- ds_main_outpatinfo_outpatlist.setColumn(i, "deptrate", ds_main_outpatinfo_outpatlist.getColumn(i, "deptrate").replace("%", ""));
- }
- }
- /**
- * @group :
- * @ver : 2007.08.13
- * @by : 하재륜
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : Unit별 현황
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSearch_inptlist(){
- for(var i = 1 ; i <= 99 ; i++){
- group2.switch2.case5.grd_inptlist.setFormatColProperty(GRD_INPTLIST_FIXCOL+i, "size", 0);
- //group2.switch2.case5.grd_inptlist.setRealColSize(GRD_INPTLIST_FIXCOL+i, 0);
- }
- ds_main_inpt_dept_deptlist.clearData();
- ds_main_inpt_inptlist.clearData();
- ds_send.setColumn(0, "orddd",group2.ipt_orddd.value); //보고일자
-
- var oParam = {};
- oParam.id = "TRMNB01203";
- oParam.service = "wardcareapp.WardBizMngt";
- oParam.method = "reqGetDeptList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_inpt_dept_deptlist=deptlist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNB01203";
- tranf_submit(oParam);
- ds_send.setColumn(0, "orddd",group2.ipt_orddd.value); //보고일자
-
- var oParam = {};
- oParam.id = "TRMNB01202";
- oParam.service = "wardcareapp.WardBizMngt";
- oParam.method = "reqGetInptList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_inpt_inptlist=inptlist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNB01202";
- tranf_submit(oParam);
-
- ds_main_inpt_inptlist.rowposition = -1;
- }
- /**
- * @group :
- * @ver : 2007.08.13
- * @by : 하재륜
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 보고 행추가
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fAdd_Reptrows(grdflg){
- var wardcd = dutplcecd; //세션에서 받아처리
- var plandd = utlf_getCurrentDate();
- var plandt = utlf_getCurrentDate()+utlf_getCurrentTime().substring(0,4);
- if(grdflg == "psnlist"){
- if(group2.switch1.case1.grd_psnlist.rowcount < 1){
- ds_main_inpt_reptdata_psnlist.addRow();
- }else{
- ds_main_inpt_reptdata_psnlist.insertRow(0);
- }
-
- ds_main_inpt_reptdata_psnlist.enableevent = false;
- ds_main_inpt_reptdata_psnlist.updatecontrol = false;
-
- ds_main_inpt_reptdata_psnlist.setColumn(ds_main_inpt_reptdata_psnlist.rowposition, "staiud","insert");
- ds_main_inpt_reptdata_psnlist.setColumn(ds_main_inpt_reptdata_psnlist.rowposition, "wardcd",wardcd);
- ds_main_inpt_reptdata_psnlist.setColumn(ds_main_inpt_reptdata_psnlist.rowposition, "plandd",plandd);
- ds_main_inpt_reptdata_psnlist.setColumn(ds_main_inpt_reptdata_psnlist.rowposition, "plandt",plandt);
- ds_main_inpt_reptdata_psnlist.setColumn(ds_main_inpt_reptdata_psnlist.rowposition, "usernm",sysf_getUserName());
- ds_main_inpt_reptdata_psnlist.setColumn(ds_main_inpt_reptdata_psnlist.rowposition, "posdeptnm",sysf_getUserInfo("dutplcenm"));
- ds_main_inpt_reptdata_psnlist.setColumn(ds_main_inpt_reptdata_psnlist.rowposition, "userid",sysf_getUserId());
- ds_main_inpt_reptdata_psnlist.setColumn(ds_main_inpt_reptdata_psnlist.rowposition, "deliveflagcd","01");
- //grd_psnlist.cellStyle("background-image", grd_psnlist.row, 1) = "../../../com/commonweb/images/icon_i.gif";
-
- ds_main_inpt_reptdata_psnlist.updatecontrol = true;
- ds_main_inpt_reptdata_psnlist.enableevent = true;
- }else if(grdflg == "wardlist"){
- if(formPath.grd_wardlist.rowcount < 1){
- ds_main_inpt_reptdata_wardlist.addRow();
- }else{
- ds_main_inpt_reptdata_wardlist.insertRow(0);
- }
-
- ds_main_inpt_reptdata_wardlist.enableevent = false;
- ds_main_inpt_reptdata_wardlist.updatecontrol = false;
-
- ds_main_inpt_reptdata_wardlist.setColumn(ds_main_inpt_reptdata_wardlist.rowposition, "staiud","insert");
- ds_main_inpt_reptdata_wardlist.setColumn(ds_main_inpt_reptdata_wardlist.rowposition, "plandd",plandd);
- ds_main_inpt_reptdata_wardlist.setColumn(ds_main_inpt_reptdata_wardlist.rowposition, "plandt",plandt);
- var strTmp = ds_temp.getColumn(0, "duty");
- ds_main_inpt_reptdata_wardlist.setColumn(ds_main_inpt_reptdata_wardlist.rowposition, "duty", strTmp == "4" ? "1" : strTmp);
- ds_main_inpt_reptdata_wardlist.setColumn(ds_main_inpt_reptdata_wardlist.rowposition, "usernm",sysf_getUserName());
- ds_main_inpt_reptdata_wardlist.setColumn(ds_main_inpt_reptdata_wardlist.rowposition, "userid",sysf_getUserId());
- if(erdeptflag == "Y") {
- ds_main_inpt_reptdata_wardlist.setColumn(ds_main_inpt_reptdata_wardlist.rowposition, "wardcd", erdeptcd);
- ds_main_inpt_reptdata_wardlist.setColumn(ds_main_inpt_reptdata_wardlist.rowposition, "posdeptnm", erdeptnm);
- } else {
- ds_main_inpt_reptdata_wardlist.setColumn(ds_main_inpt_reptdata_wardlist.rowposition, "wardcd", wardcd);
- ds_main_inpt_reptdata_wardlist.setColumn(ds_main_inpt_reptdata_wardlist.rowposition, "posdeptnm", sysf_getUserInfo("dutplcenm"));
- }
- ds_main_inpt_reptdata_wardlist.setColumn(ds_main_inpt_reptdata_wardlist.rowposition, "deliveflagcd","02");
-
- ds_main_inpt_reptdata_wardlist.updatecontrol = true;
- ds_main_inpt_reptdata_wardlist.enableevent = true;
- }else if(grdflg == "edulist"){
- if(group2.switch1.case3.grd_edulist.rowcount < 1){
- ds_main_inpt_reptdata_edulist.addRow();
- }else{
- ds_main_inpt_reptdata_edulist.insertRow(0);
- }
-
- ds_main_inpt_reptdata_edulist.enableevent = false;
- ds_main_inpt_reptdata_edulist.updatecontrol = false;
-
- ds_main_inpt_reptdata_edulist.setColumn(ds_main_inpt_reptdata_edulist.rowposition, "staiud","insert");
- ds_main_inpt_reptdata_edulist.setColumn(ds_main_inpt_reptdata_edulist.rowposition, "wardcd",wardcd);
- ds_main_inpt_reptdata_edulist.setColumn(ds_main_inpt_reptdata_edulist.rowposition, "plandd",plandd);
- ds_main_inpt_reptdata_edulist.setColumn(ds_main_inpt_reptdata_edulist.rowposition, "plandt",plandt);
- ds_main_inpt_reptdata_edulist.setColumn(ds_main_inpt_reptdata_edulist.rowposition, "usernm",sysf_getUserName());
- ds_main_inpt_reptdata_edulist.setColumn(ds_main_inpt_reptdata_edulist.rowposition, "posdeptnm",sysf_getUserInfo("dutplcenm"));
- ds_main_inpt_reptdata_edulist.setColumn(ds_main_inpt_reptdata_edulist.rowposition, "userid",sysf_getUserId());
- ds_main_inpt_reptdata_edulist.setColumn(ds_main_inpt_reptdata_edulist.rowposition, "deliveflagcd","03");
- //grd_edulist.cellStyle("background-image", grd_edulist.row, 1) = "../../../com/commonweb/images/icon_i.gif";
-
- ds_main_inpt_reptdata_edulist.updatecontrol = true;
- ds_main_inpt_reptdata_edulist.enableevent = true;
- }else if(grdflg == "etclist"){
- if(group2.switch1.case4.grd_etclist.rowcount < 1){
- ds_main_inpt_reptdata_etclist.addRow();
- }else{
- ds_main_inpt_reptdata_etclist.insertRow(0);
- }
-
- ds_main_inpt_reptdata_etclist.enableevent = false;
- ds_main_inpt_reptdata_etclist.updatecontrol = false;
-
- ds_main_inpt_reptdata_etclist.setColumn(ds_main_inpt_reptdata_etclist.rowposition, "staiud","insert");
- ds_main_inpt_reptdata_etclist.setColumn(ds_main_inpt_reptdata_etclist.rowposition, "wardcd",wardcd);
- ds_main_inpt_reptdata_etclist.setColumn(ds_main_inpt_reptdata_etclist.rowposition, "plandd",plandd);
- ds_main_inpt_reptdata_etclist.setColumn(ds_main_inpt_reptdata_etclist.rowposition, "plandt",plandt);
- ds_main_inpt_reptdata_etclist.setColumn(ds_main_inpt_reptdata_etclist.rowposition, "usernm",sysf_getUserName());
- ds_main_inpt_reptdata_etclist.setColumn(ds_main_inpt_reptdata_etclist.rowposition, "userid",sysf_getUserId());
- ds_main_inpt_reptdata_etclist.setColumn(ds_main_inpt_reptdata_etclist.rowposition, "deliveflagcd","04");
- //grd_etclist.cellStyle("background-image", grd_etclist.row, 1) = "../../../com/commonweb/images/icon_i.gif";
-
- ds_main_inpt_reptdata_etclist.updatecontrol = true;
- ds_main_inpt_reptdata_etclist.enableevent = true;
- }else if(grdflg == "notilist"){
- if(group2.switch1.case14.grd_noti.rowcount < 1){
- ds_main_inpt_reptdata_notilist.addRow();
- }else{
- ds_main_inpt_reptdata_notilist.insertRow(0);
- }
-
- ds_main_inpt_reptdata_notilist.enableevent = false;
- ds_main_inpt_reptdata_notilist.updatecontrol = false;
-
- ds_main_inpt_reptdata_notilist.setColumn(ds_main_inpt_reptdata_notilist.rowposition, "staiud","insert");
- ds_main_inpt_reptdata_notilist.setColumn(ds_main_inpt_reptdata_notilist.rowposition, "wardcd",wardcd);
- ds_main_inpt_reptdata_notilist.setColumn(ds_main_inpt_reptdata_notilist.rowposition, "plandd",plandd);
- ds_main_inpt_reptdata_notilist.setColumn(ds_main_inpt_reptdata_notilist.rowposition, "plandt",plandt);
- ds_main_inpt_reptdata_notilist.setColumn(ds_main_inpt_reptdata_notilist.rowposition, "usernm",sysf_getUserName());
- ds_main_inpt_reptdata_notilist.setColumn(ds_main_inpt_reptdata_notilist.rowposition, "userid",sysf_getUserId());
- ds_main_inpt_reptdata_notilist.setColumn(ds_main_inpt_reptdata_notilist.rowposition, "deliveflagcd","05");
- //grd_noti.cellStyle("background-image", grd_noti.row, 1) = "../../../com/commonweb/images/icon_i.gif";
-
- ds_main_inpt_reptdata_notilist.updatecontrol = true;
- ds_main_inpt_reptdata_notilist.enableevent = true;
- }
- }
- /**
- * @group :
- * @ver : 2007.08.13
- * @by : 하재륜
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 보고 행수정
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fUpt_Reptrows(grdflg){
- var wardcd = dutplcecd; //세션에서 받아처리
- var plandd = group2.ipt_orddd2.value;
- var plandt = utlf_getCurrentDate()+utlf_getCurrentTime().substring(0,4);
- if(grdflg == "psnlist"){
-
- var staiud = ds_main_inpt_reptdata_psnlist.getColumn(ds_main_inpt_reptdata_psnlist.rowposition, "staiud");
- if( (staiud =="insert") || (staiud =="delete") ){
- return;
- }
- ds_main_inpt_reptdata_psnlist.setColumn(ds_main_inpt_reptdata_psnlist.rowposition, "staiud","update");
- ds_main_inpt_reptdata_psnlist.setColumn(ds_main_inpt_reptdata_psnlist.rowposition, "wardcd",wardcd);
- ds_main_inpt_reptdata_psnlist.setColumn(ds_main_inpt_reptdata_psnlist.rowposition, "usernm",sysf_getUserName());
- ds_main_inpt_reptdata_psnlist.setColumn(ds_main_inpt_reptdata_psnlist.rowposition, "posdeptnm",sysf_getUserInfo("dutplcenm"));
- ds_main_inpt_reptdata_psnlist.setColumn(ds_main_inpt_reptdata_psnlist.rowposition, "userid",sysf_getUserId());
- ds_main_inpt_reptdata_psnlist.setColumn(ds_main_inpt_reptdata_psnlist.rowposition, "deliveflagcd","01");
- //grd_psnlist.cellStyle("background-image", grd_psnlist.row, 1) = "../../../com/commonweb/images/icon_u.gif";
-
- }else if(grdflg == "wardlist"){
-
- var staiud = ds_main_inpt_reptdata_wardlist.getColumn(ds_main_inpt_reptdata_wardlist.rowposition, "staiud");
-
- if( (staiud =="insert") || (staiud =="delete") ){
- return;
- }
-
- var dt = ds_main_inpt_reptdata_wardlist.getColumn(ds_main_inpt_reptdata_wardlist.rowposition, "plandt");
-
- if(utlf_isNull(dt)) {
- ds_main_inpt_reptdata_wardlist.setColumn(ds_main_inpt_reptdata_wardlist.rowposition, "plandd",plandd);
- ds_main_inpt_reptdata_wardlist.setColumn(ds_main_inpt_reptdata_wardlist.rowposition, "plandt",plandt);
- }
- ds_main_inpt_reptdata_wardlist.setColumn(ds_main_inpt_reptdata_wardlist.rowposition, "staiud","update");
- ds_main_inpt_reptdata_wardlist.setColumn(ds_main_inpt_reptdata_wardlist.rowposition, "usernm",sysf_getUserName());
- ds_main_inpt_reptdata_wardlist.setColumn(ds_main_inpt_reptdata_wardlist.rowposition, "userid",sysf_getUserId());
- ds_main_inpt_reptdata_wardlist.setColumn(ds_main_inpt_reptdata_wardlist.rowposition, "deliveflagcd","02");
-
- }else if(grdflg == "edulist"){
-
- var staiud = ds_main_inpt_reptdata_edulist.getColumn(ds_main_inpt_reptdata_edulist.rowposition, "staiud");
-
- if( (staiud =="insert") || (staiud =="delete") ){
- return;
- }
- ds_main_inpt_reptdata_edulist.setColumn(ds_main_inpt_reptdata_edulist.rowposition, "staiud","update");
- ds_main_inpt_reptdata_edulist.setColumn(ds_main_inpt_reptdata_edulist.rowposition, "wardcd",wardcd);
- ds_main_inpt_reptdata_edulist.setColumn(ds_main_inpt_reptdata_edulist.rowposition, "usernm",sysf_getUserName());
- ds_main_inpt_reptdata_edulist.setColumn(ds_main_inpt_reptdata_edulist.rowposition, "posdeptnm",sysf_getUserInfo("dutplcenm"));
- ds_main_inpt_reptdata_edulist.setColumn(ds_main_inpt_reptdata_edulist.rowposition, "userid",sysf_getUserId());
- ds_main_inpt_reptdata_edulist.setColumn(ds_main_inpt_reptdata_edulist.rowposition, "deliveflagcd","03");
- //grd_edulist.cellStyle("background-image", grd_edulist.row, 1) = "../../../com/commonweb/images/icon_u.gif";
-
- }else if(grdflg == "etclist"){
-
- var staiud = ds_main_inpt_reptdata_etclist.getColumn(ds_main_inpt_reptdata_etclist.rowposition, "staiud");
-
- if( (staiud =="insert") || (staiud =="delete") ){
- return;
- }
- ds_main_inpt_reptdata_etclist.setColumn(ds_main_inpt_reptdata_etclist.rowposition, "staiud","update");
- ds_main_inpt_reptdata_etclist.setColumn(ds_main_inpt_reptdata_etclist.rowposition, "wardcd",wardcd);
- ds_main_inpt_reptdata_etclist.setColumn(ds_main_inpt_reptdata_etclist.rowposition, "usernm",sysf_getUserName());
- ds_main_inpt_reptdata_etclist.setColumn(ds_main_inpt_reptdata_etclist.rowposition, "userid",sysf_getUserId());
- ds_main_inpt_reptdata_etclist.setColumn(ds_main_inpt_reptdata_etclist.rowposition, "deliveflagcd","04");
- //grd_etclist.cellStyle("background-image", grd_etclist.row, 1) = "../../../com/commonweb/images/icon_u.gif";
- }else if(grdflg == "notilist"){
-
- var staiud = ds_main_inpt_reptdata_notilist.getColumn(ds_main_inpt_reptdata_notilist.rowposition, "staiud");
-
- if( (staiud =="insert") || (staiud =="delete") ){
- return;
- }
- ds_main_inpt_reptdata_notilist.setColumn(ds_main_inpt_reptdata_notilist.rowposition, "staiud","update");
- ds_main_inpt_reptdata_notilist.setColumn(ds_main_inpt_reptdata_notilist.rowposition, "wardcd",wardcd);
- ds_main_inpt_reptdata_notilist.setColumn(ds_main_inpt_reptdata_notilist.rowposition, "usernm",sysf_getUserName());
- ds_main_inpt_reptdata_notilist.setColumn(ds_main_inpt_reptdata_notilist.rowposition, "userid",sysf_getUserId());
- ds_main_inpt_reptdata_notilist.setColumn(ds_main_inpt_reptdata_notilist.rowposition, "deliveflagcd","05");
- //grd_noti.cellStyle("background-image", grd_noti.row, 1) = "../../../com/commonweb/images/icon_u.gif";
- }
- }
- /**
- * @group :
- * @ver : 2007.08.13
- * @by : 하재륜
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 보고 행삭제
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fDel_Reptrows(grdflg){
- var reptcnt;
- if(grdflg == "psnlist"){
- reptcnt = group2.switch1.case1.grd_psnlist.rowcount;
- }else if(grdflg == "wardlist"){
- reptcnt = formPath.grd_wardlist.rowcount;
- }else if(grdflg == "edulist"){
- reptcnt = group2.switch1.case3.grd_edulist.rowcount;
- }else if(grdflg == "etclist"){
- reptcnt = group2.switch1.case4.grd_etclist.rowcount;
- }else if(grdflg == "notilist"){
- reptcnt = group2.switch1.case14.grd_noti.rowcount;
- }
- if(reptcnt < 1){
- sysf_messageBox("삭제 할 자료가 ","I004");
- return;
- }
- if(grdflg == "psnlist"){
- ds_main_inpt_reptdata_psnlist.enableevent = false;
- ds_main_inpt_reptdata_psnlist.updatecontrol = false;
-
- ds_main_inpt_reptdata_psnlist.setColumn(ds_main_inpt_reptdata_psnlist.rowposition, "staiud","delete");
- ds_main_inpt_reptdata_psnlist.setRowType(ds_main_inpt_reptdata_psnlist.rowposition, 8);
- //grd_psnlist.cellStyle("background-image", grd_psnlist.row, 1) = "../../../com/commonweb/images/icon_d.gif";
-
- ds_main_inpt_reptdata_psnlist.updatecontrol = true;
- ds_main_inpt_reptdata_psnlist.enableevent = true;
- }else if(grdflg == "wardlist"){
- ds_main_inpt_reptdata_wardlist.enableevent = false;
- ds_main_inpt_reptdata_wardlist.updatecontrol = false;
-
- ds_main_inpt_reptdata_wardlist.setColumn(ds_main_inpt_reptdata_wardlist.rowposition, "staiud","delete");
- ds_main_inpt_reptdata_wardlist.setRowType(ds_main_inpt_reptdata_wardlist.rowposition, 8);
-
- ds_main_inpt_reptdata_wardlist.updatecontrol = true;
- ds_main_inpt_reptdata_wardlist.enableevent = true;
- }else if(grdflg == "edulist"){
- ds_main_inpt_reptdata_edulist.enableevent = false;
- ds_main_inpt_reptdata_edulist.updatecontrol = false;
-
- ds_main_inpt_reptdata_edulist.setColumn(ds_main_inpt_reptdata_edulist.rowposition, "staiud","delete");
- ds_main_inpt_reptdata_edulist.setRowType(ds_main_inpt_reptdata_edulist.rowposition, 8);
- //grd_edulist.cellStyle("background-image", grd_edulist.row, 1) = "../../../com/commonweb/images/icon_d.gif";
-
- ds_main_inpt_reptdata_edulist.updatecontrol = true;
- ds_main_inpt_reptdata_edulist.enableevent = true;
- }else if(grdflg == "etclist"){
- ds_main_inpt_reptdata_etclist.enableevent = false;
- ds_main_inpt_reptdata_etclist.updatecontrol = false;
-
- ds_main_inpt_reptdata_etclist.setColumn(ds_main_inpt_reptdata_etclist.rowposition, "staiud","delete");
- ds_main_inpt_reptdata_etclist.setRowType(ds_main_inpt_reptdata_etclist.rowposition, 8);
- //grd_etclist.cellStyle("background-image", grd_etclist.row, 1) = "../../../com/commonweb/images/icon_d.gif";
-
- ds_main_inpt_reptdata_etclist.updatecontrol = true;
- ds_main_inpt_reptdata_etclist.enableevent = true;
- }else if(grdflg == "notilist"){
- ds_main_inpt_reptdata_notilist.enableevent = false;
- ds_main_inpt_reptdata_notilist.updatecontrol = false;
-
- ds_main_inpt_reptdata_notilist.setColumn(ds_main_inpt_reptdata_notilist.rowposition, "staiud","delete");
- ds_main_inpt_reptdata_notilist.setRowType(ds_main_inpt_reptdata_notilist.rowposition, 8);
- //grd_noti.cellStyle("background-image", grd_noti.row, 1) = "../../../com/commonweb/images/icon_d.gif";
-
- ds_main_inpt_reptdata_notilist.updatecontrol = true;
- ds_main_inpt_reptdata_notilist.enableevent = true;
- }
- }
- /**
- * @group :
- * @ver : 2007.08.13
- * @by : 하재륜
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 외래진료 현황
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fCaseChange(){
- if(unitflg == 1){
- fSearch_inptlist();
- fSearch_specnurs();
- }else if(unitflg == 2){
- fSearch_otptlist();
- }
- }
- /**
- * @group :
- * @ver : 2008.06.05
- * @by : 하재륜
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 수술,응급,분만,신생아,HD,APU,주사 각각 조회
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSearch_specnurs(){
- ds_main_inpt_specnurs_oprsinfo.clearData(); // 수술 (정규,응급,통원,전체)
- ds_main_inpt_specnurs_oprsdetl.clearData(); // 수술 (종류,구분,건수)
- ds_main_inpt_specnurs_ernurs.clearData(); // 응급
- ds_main_inpt_specnurs_partrtn.clearData(); // 분만
- ds_main_inpt_specnurs_nbabycare.clearData(); // 신생아
- ds_main_inpt_specnurs_hdroom.clearData(); // HD
- ds_main_inpt_specnurs_apuroom.clearData(); // APU
- ds_main_inpt_specnurs_injction.clearData(); // 주사
-
- ds_send.setColumn(0, "plandd",group2.ipt_orddd.value); //업무일자
- ds_send.setColumn(0, "deptflg",deptflg); //특수간호
- ds_send.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd")); // 기관코드
-
- var oParam = {};
- oParam.id = "TRMNB01206";
- oParam.service = "wardcareapp.WardBizMngt";
- oParam.method = "reqGetSpecnurs";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_inpt_specnurs_oprsdetl=oprsdetl ds_main_inpt_specnurs_ernurs=ernurs ds_main_inpt_specnurs_partrtn=partrtn ds_main_inpt_specnurs_hdroom=hdroom ds_main_inpt_specnurs_apuroom=apuroom ds_main_inpt_specnurs_injction=injction";
- oParam.async = false;
- //oParam.callback = "cf_TRMNB01206";
- tranf_submit(oParam);
-
- ds_main_inpt_specnurs_oprsdetl.rowposition = -1;
- ds_main_inpt_specnurs_ernurs.rowposition = -1;
- ds_main_inpt_specnurs_partrtn.rowposition = -1;
- ds_main_inpt_specnurs_hdroom.rowposition = -1;
- ds_main_inpt_specnurs_apuroom.rowposition = -1;
- ds_main_inpt_specnurs_injction.rowposition = -1;
-
- }
- /**
- * @group :
- * @ver : 2007.08.13
- * @by : 하재륜
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 보고 저장
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSave_Reptrows(grdflg){
-
- if(sysf_messageBox("","Q002") != 6) return;
- var xReptPath;
- var reptcnt;
- var num = "";
-
- if(grdflg == "psnlist"){
- xReptPath = ds_main_inpt_reptdata_psnlist;
- reptcnt = group2.switch1.case1.grd_psnlist.rowcount;
- }else if(grdflg == "wardlist"){
- xReptPath = ds_main_inpt_reptdata_wardlist;
- reptcnt = group2.switch1.case2.grd_wardlist.rowcount;
- }else if(grdflg == "edulist"){
- xReptPath = ds_main_inpt_reptdata_edulist;
- reptcnt = group2.switch1.case3.grd_edulist.rowcount;
- }else if(grdflg == "etclist"){
- xReptPath = ds_main_inpt_reptdata_etclist;
- reptcnt = group2.switch1.case4.grd_etclist.rowcount;
- }else if(grdflg == "notilist"){
- xReptPath = ds_main_inpt_reptdata_notilist;
- reptcnt = group2.switch1.case14.grd_noti.rowcount;
- }
-
-
- for(var i=0; i<reptcnt; i++){
- var state = xReptPath.getColumn(i, "staiud");
- if (state == "insert" || state == "update" || state == "delete"){
- num = "";
- break;
- }else{
- num = "1";
- }
- }
-
- if(reptcnt < 1 || num == "1" ){
- sysf_messageBox("저장할 자료가 존재하지 않습니다.","I");
- return;
- }
-
- if(grdflg == "wardlist") {
- ds_send_sReptPath.assign(grdf_getGridUpdateData(group2.switch1.case2.grd_wardlist, "all"));
- } else {
- var sReptPath =
- "wardcd" //01병동코드
- + "▦plandd" //02계획일자
- + "▦plandt" //03계획시간
- + "▦deliveflagcd" //04전달구분
- + "▦delivecnts" //05내용
- + "▦userid" //06작성자
- + "▦staiud" //07상태
- + "▦seqno" //08시퀀스번호
- + "▦duty" //09todolist
- + "▦filenm" //파일명
- + "▦filesize" //파일크기
- + "▦filetype" //파일형식
- + "▦filepath" //ftp파일경로
- + "▩" ;
-
- var plandd = "";
- var seqno = "";
-
- for (var i=0;i < reptcnt; i++ ) {
- seqno = xReptPath.getColumn(i, "seqno");
- if(utlf_isNull(seqno)) {
- plandd = utlf_getCurrentDate();
- } else {
- plandd = utlf_transNullToEmpty(xReptPath.getColumn(i, "plandd"));
- }
- sReptPath += utlf_transNullToEmpty(xReptPath.getColumn(i, "wardcd" )) //01병동코드
- + "▦" + plandd //02계획일자
- + "▦" + utlf_transNullToEmpty(xReptPath.getColumn(i, "plandt" )) //03계획시간
- + "▦" + utlf_transNullToEmpty(xReptPath.getColumn(i, "deliveflagcd")) //04전달구분
- + "▦" + utlf_transNullToEmpty(xReptPath.getColumn(i, "delivecnts" )) //05내용
- + "▦" + utlf_transNullToEmpty(xReptPath.getColumn(i, "userid" )) //06작성자
- + "▦" + utlf_transNullToEmpty(xReptPath.getColumn(i, "staiud" )) //07상태
- + "▦" + utlf_transNullToEmpty(xReptPath.getColumn(i, "seqno" )) //08시퀀스번호
- + "▦" + utlf_transNullToEmpty(xReptPath.getColumn(i, "duty" )) //09todolist
- + "▦" + utlf_transNullToEmpty(xReptPath.getColumn(i, "filenm" )) //파일명
- + "▦" + utlf_transNullToEmpty(xReptPath.getColumn(i, "filesize" )) //파일크기
- + "▦" + utlf_transNullToEmpty(xReptPath.getColumn(i, "filetype" )) //파일형식
- + "▦" + utlf_transNullToEmpty(xReptPath.getColumn(i, "filepath" )) //ftp파일경로
- + "▩" ;
- }
-
- dsf_setCSVToDs("ds_send_sReptPath", sReptPath);
- }
-
- var oParam = {};
- oParam.id = "TXMNB01201";
- oParam.service = "wardcareapp.WardBizMngt";
- oParam.method = "reqExeSetRept";
- oParam.inds = "attach=ds_send_attach reqExeSetRept=ds_send_sReptPath:A";
- oParam.outds = "";
- oParam.async = false;
- //oParam.callback = "cf_TXMNB01201";
- tranf_submit(oParam);
-
- if(grdflg == "psnlist"){
- // for(i= 1 ; i <= grd_psnlist.rows ; i++){
- // grd_psnlist.cellStyle("background-image", + i , 1) = "../../../com/commonweb/images/icon_n.gif";
- // }
- group2.switch1.tabindex = 1;
- }else if(grdflg == "wardlist"){
- // for(i= 1 ; i <= grd_wardlist.rows ; i++){
- // //grd_wardlist.cellStyle("background-image", + i , 1) = "../../../com/commonweb/images/icon_n.gif";
- // }
- group2.switch1.tabindex = 0;
- }else if(grdflg == "edulist"){
- // for(i= 1 ; i <= grd_edulist.rows ; i++){
- // grd_edulist.cellStyle("background-image", + i , 1) = "../../../com/commonweb/images/icon_n.gif";
- // }
- group2.switch1.tabindex = 2;
- }else if(grdflg == "etclist"){
- // for(i= 1 ; i <= grd_etclist.rows ; i++){
- // grd_etclist.cellStyle("background-image", + i , 1) = "../../../com/commonweb/images/icon_n.gif";
- // }
- group2.switch1.tabindex = 3;
- }else if(grdflg == "notilist"){
- // for(i= 1 ; i <= grd_noti.rows ; i++){
- // grd_noti.cellStyle("background-image", + i , 1) = "../../../com/commonweb/images/icon_n.gif";
- // }
- group2.switch1.tabindex = 4;
- }
- cnt = 2;
- //group2.btn_srch2.click();
- frmf_inputEnterKey("group2.btn_srch2", "onclick", new ClickEventInfo);//MIS DB링크로 인해..조회가 바로되지않아서 2번태움.
- cnt = 0;
- //group2.btn_srch2.click();
- frmf_inputEnterKey("group2.btn_srch2", "onclick", new ClickEventInfo);//MIS DB링크로 인해..조회가 바로되지않아서 2번태움.
-
- }
- /**
- * @group :
- * @ver : 2007.08.13
- * @by : 하재륜
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 화면 로드시
- * @param :
- * @return : 입력한날짜 + 날자
- * @---------------------------------------------------
- */
- function getAddDay(inputday,addend){
- var backDate ="";
- var rt = 0;
- var yyyy = inputday.substring(0,4) +"";
- var mm = inputday.substring(4,6) +"";
- var dd = inputday.substring(6,8) +"";
- var startDate = new Date(yyyy,(eval(mm)-1),dd);
- startDate.setTime(startDate.getTime()+(86400000*addend));
- NowYear = startDate.getYear();// 년
- NowMonth = startDate.getMonth()+1;// 월
- NowDay = startDate.getDate(); // 일
- backDate += NowYear ; //년도
- if (NowMonth < 10 ) backDate += "0" + NowMonth ;
- else backDate += (startDate.getMonth() + 1);
- if (NowDay < 10 ) backDate += "0" + NowDay ;
- else backDate += (startDate.getDate());
- return backDate ;
- }
- /**
- * @group :
- * @ver : 2007.08.13
- * @by : 하재륜
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 보고 조회
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSearch_reptlist(){
- var wardcd = dutplcecd; //세션에서 받아처리
- var jobrespcd = sysf_getUserInfo("jobrespcd");
- var jobkindcd = sysf_getUserInfo("jobkindcd");
- var jobposcd = sysf_getUserInfo("jobposcd");
- var fstdeptnm="";
- var deptnm ="";
- ds_main_inpt_reptdata_psnlist.clearData();
- ds_main_inpt_reptdata_wardlist.clearData();
- ds_main_inpt_reptdata_edulist.clearData();
- ds_main_inpt_reptdata_etclist.clearData();
- ds_main_inpt_reptdata_notilist.clearData();
-
- ds_send_attach.clearData();
-
- opt_certnm.value = "";
- opt_certdt.value = "";
-
- if( jobkindcd == "1140" && (jobposcd == "41" || (jobposcd == "84" && dutplcecd != "3080000000") || jobposcd == "41-1" || jobposcd == "89" || sysf_getUserInfo("userid") == "ENR" || dutplcecd == ds_codelist.lookupExpr("cdgrupid=='I11' && cdid=='"+dutplcecd+"'", "cdid") || sysf_getUserInfo("userid") == ds_codelist.lookupExpr("cdgrupid=='I10' && cdid=='"+sysf_getUserInfo("userid")+"'", "cdid")) ){//간호부와 간호행정교육팀도 전체 조회 --> 간호부장과 팀장만 전체로 보도록. 이원희 선생님경우 전부되도록.
- ds_send.setColumn(0, "wardcd","%"); //병동코드
- ds_send.setColumn(0, "authallyn","Y"); //전부서조회
- } else {
- ds_send.setColumn(0, "wardcd",wardcd); //병동코드
- ds_send.setColumn(0, "authallyn","N"); //전부서조회
- if(erdeptflag == "Y") {
- ds_send.setColumn(0, "authallyn", "E");
- }
- }
-
- ds_send.setColumn(0, "plandd",group2.ipt_orddd2.value); //계획일자
- ds_send.setColumn(0, "duty", "4"); //todo "4":All 20111018_KNUH_Start 무조건 All로 조회되도록 수정.
- ds_send.setColumn(0, "deliveflagcd",reptflg); //전달구분
- ds_send.setColumn(0, "deptflag", formPath.rdo_deptflag.value);
-
- /*if(cnt == 2) {*/
- var oParam = {};
- oParam.id = "TRMNB01204";
- oParam.service = "wardcareapp.WardBizMngt";
- oParam.method = "reqGetReptList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_inpt_reptdata_psnlist=psnlist ds_main_inpt_reptdata_wardlist=wardlist ds_main_inpt_reptdata_edulist=edulist ds_main_inpt_reptdata_etclist=etclist ds_main_inpt_reptdata_notilist=notilist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNB01204";
- tranf_submit(oParam);
- // } else {
- // var oParam = {};
- // oParam.id = "TRMNB01204";
- // oParam.service = "wardcareapp.WardBizMngt";
- // oParam.method = "reqGetReptList";
- // oParam.inds = "req=ds_send";
- // oParam.outds = "ds_main_inpt_reptdata_psnlist=psnlist ds_main_inpt_reptdata_wardlist=wardlist ds_main_inpt_reptdata_edulist=edulist ds_main_inpt_reptdata_etclist=etclist ds_main_inpt_reptdata_notilist=notilist";
- // oParam.async = false;
- // //oParam.callback = "cf_TRMNB01204";
- //
- // tranf_submit(oParam);
- // }
-
- if( utlf_isNull(ds_main_inpt_reptdata_wardlist.getColumnInfo("staiud")) ){
- ds_main_inpt_reptdata_wardlist.addColumn("staiud", "string");
- }
- if( utlf_isNull(ds_main_inpt_reptdata_wardlist.getColumnInfo("userid")) ){
- ds_main_inpt_reptdata_wardlist.addColumn("userid", "string");
- }
-
- if( utlf_isNull(ds_main_inpt_reptdata_psnlist.getColumnInfo("filenm")) ){
- ds_main_inpt_reptdata_psnlist.addColumn("filenm", "string");
- }
- if( utlf_isNull(ds_main_inpt_reptdata_psnlist.getColumnInfo("filesize")) ){
- ds_main_inpt_reptdata_psnlist.addColumn("filesize", "string");
- }
- if( utlf_isNull(ds_main_inpt_reptdata_psnlist.getColumnInfo("filetype")) ){
- ds_main_inpt_reptdata_psnlist.addColumn("filetype", "string");
- }
- if( utlf_isNull(ds_main_inpt_reptdata_psnlist.getColumnInfo("filepath")) ){
- ds_main_inpt_reptdata_psnlist.addColumn("filepath", "string");
- }
-
- if( utlf_isNull(ds_main_inpt_reptdata_edulist.getColumnInfo("filenm")) ){
- ds_main_inpt_reptdata_edulist.addColumn("filenm", "string");
- }
- if( utlf_isNull(ds_main_inpt_reptdata_edulist.getColumnInfo("filesize")) ){
- ds_main_inpt_reptdata_edulist.addColumn("filesize", "string");
- }
- if( utlf_isNull(ds_main_inpt_reptdata_edulist.getColumnInfo("filetype")) ){
- ds_main_inpt_reptdata_edulist.addColumn("filetype", "string");
- }
- if( utlf_isNull(ds_main_inpt_reptdata_edulist.getColumnInfo("filepath")) ){
- ds_main_inpt_reptdata_edulist.addColumn("filepath", "string");
- }
-
- if( utlf_isNull(ds_main_inpt_reptdata_etclist.getColumnInfo("filenm")) ){
- ds_main_inpt_reptdata_etclist.addColumn("filenm", "string");
- }
- if( utlf_isNull(ds_main_inpt_reptdata_etclist.getColumnInfo("filesize")) ){
- ds_main_inpt_reptdata_etclist.addColumn("filesize", "string");
- }
- if( utlf_isNull(ds_main_inpt_reptdata_etclist.getColumnInfo("filetype")) ){
- ds_main_inpt_reptdata_etclist.addColumn("filetype", "string");
- }
- if( utlf_isNull(ds_main_inpt_reptdata_etclist.getColumnInfo("filepath")) ){
- ds_main_inpt_reptdata_etclist.addColumn("filepath", "string");
- }
-
- ds_main_inpt_reptdata_psnlist.rowposition = -1;
- ds_main_inpt_reptdata_wardlist.rowposition = -1;
- ds_main_inpt_reptdata_edulist.rowposition = -1;
- ds_main_inpt_reptdata_etclist.rowposition = -1;
- ds_main_inpt_reptdata_notilist.rowposition = -1;
-
- if(formPath.grd_wardlist.rowcount > 0) {
- fstdeptnm = ds_main_inpt_reptdata_wardlist.getColumn(0, "posdeptnm");
- }
-
- var sExprLine = "EXPR(";
-
- for(var i = 0; i < formPath.grd_wardlist.rowcount; i++){
- deptnm = ds_main_inpt_reptdata_wardlist.getColumn(i, "posdeptnm");
- if(fstdeptnm != deptnm) {
- fstdeptnm = deptnm;
- sExprLine += "currow == "+(i-1)+" ? '1 solid #808080ff,1 solid #808080ff,1 solid #ff0000ff,1 solid #808080ff' : ";
- // grd_wardlist.rowStyle(i-1, "data", "border-bottom-color") = "#ff0000";
- // grd_wardlist.rowStyle(i-1, "data", "border-top-width") = "3";
- } else {
- sExprLine += "currow == "+(i-1)+" ? '1 solid #808080ff,1 solid #808080ff,1 solid #b0b0b0ff,1 solid #808080ff' : ";
- // grd_wardlist.rowStyle(i-1, "data", "border-bottom-color") = "#b0b0b0";
- // grd_wardlist.rowStyle(i-1, "data", "border-top-width") = "3";
- }
- }
-
- sExprLine += "'')";
-
- for( var i=3 ; i<formPath.grd_wardlist.getCellCount("Body") ; i++ ){
- formPath.grd_wardlist.setCellProperty("Body", i, "line", sExprLine);
- }
- }
- /**
- * @group :
- * @ver : 2007.08.21
- * @by : 하재륜
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 공지사항 저장
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSave_board(){
- if(sysf_messageBox("","Q002") != 6) return;
- var wardcd = "9999999999"; // 병동코드 모든부서가 보이게 임의로 부여.
- var plandd = group2.ipt_orddd2.value; //업무일자->보고일자수정
- var plandt = group2.ipt_orddd.value+"0000"; //계획시간 하루에 1개이기때문에 임의로 부여.
- var deliveflagcd = "00";
- var staiud;
- if(ds_main_inpt_board_boarddetl.getColumn(0, "staiud")=="update"){
- staiud = "update";
- }else{
- staiud = "insert";
- }
-
- ds_send.setColumn(0, "wardcd" , wardcd );
- ds_send.setColumn(0, "plandd" , plandd );
- ds_send.setColumn(0, "plandt" , plandt );
- ds_send.setColumn(0, "deliveflagcd" , deliveflagcd );
- ds_send.setColumn(0, "delivecnts" ,ds_main_inpt_board_boarddetl.getColumn(0, "delivecnts") );
- ds_send.setColumn(0, "staiud" ,staiud );
- ds_send.setColumn(0, "seqno" ,ds_main_inpt_board_boarddetl.getColumn(0, "seqno") );
-
- var oParam = {};
- oParam.id = "TXMNB01202";
- oParam.service = "wardcareapp.WardBizMngt";
- oParam.method = "reqExeSetRept";
- oParam.inds = "reqExeSetRept=ds_send";
- oParam.outds = "";
- oParam.async = false;
- //oParam.callback = "cf_TXMNB01202";
- tranf_submit(oParam);
-
- fSearch_board();
- }
- /**
- * @group :
- * @ver : 2007.08.13
- * @by : 하재륜
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 공지사항 조회
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSearch_board(){
- var wardcd = "9999999999"; //임의로 지정.
- // model.makeValue("/root/main/inpt/board/boarddetl/delivecnts","");
- // model.makeValue("/root/main/inpt/board/boarddetl/staiud","");
- //model.refresh();
- ds_main_inpt_board_boarddetl.clearData();
-
- ds_send.setColumn(0, "wardcd",wardcd); //병동코드
- ds_send.setColumn(0, "plandd",group2.ipt_orddd2.value); //업무일자->보고일자로수정
-
- var oParam = {};
- oParam.id = "TRMNB01205";
- oParam.service = "wardcareapp.WardBizMngt";
- oParam.method = "reqGetReptDetl";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_inpt_board_boarddetl=boarddetl";
- oParam.async = false;
- //oParam.callback = "cf_TRMNB01205";
- tranf_submit(oParam);
-
- if( ds_main_inpt_board_boarddetl.rowcount < 1 ){
- ds_main_inpt_board_boarddetl.addRow();
- }
-
- if ( utlf_isNull(ds_main_inpt_board_boarddetl.getColumn(0, "delivecnts")) ){
- ds_main_inpt_board_boarddetl.setColumn(0, "delivecnts","");
- ds_main_inpt_board_boarddetl.setColumn(0, "staiud","");
- ds_main_inpt_board_boarddetl.setColumn(0, "seqno","");
- }
- /*
- if(model.getValue("/root/main/inpt/board/boarddetl/staiud")!= "update") {
- model.copyNode("/root/main/inpt/board","/root/temp/board");
- }
- //model.refresh();
- */
- }
- function fSearch_DataList(){
- //병동별 과별
- model.removenodeset("/root/main/inpt/dept/deptlist");
- model.removenodeset("/root/main/inpt/inptlist");
- //특수파트
- model.removenodeset("/root/main/inpt/specnurs/oprsinfo"); // 수술 (정규,응급,통원,전체)
- model.removenodeset("/root/main/inpt/specnurs/oprsdetl"); // 수술 (종류,구분,건수)
- model.removenodeset("/root/main/inpt/specnurs/ernurs"); // 응급
- model.removenodeset("/root/main/inpt/specnurs/partrtn"); // 분만
- model.removenodeset("/root/main/inpt/specnurs/nbabycare"); // 신생아
- model.removenodeset("/root/main/inpt/specnurs/hdroom"); // HD
- model.removenodeset("/root/main/inpt/specnurs/apuroom"); // APU
- model.removenodeset("/root/main/inpt/specnurs/injction"); // 주사
- //보고
- var wardcd = dutplcecd; //세션에서 받아처리
- model.removenodeset("/root/main/inpt/reptdata/psnlist");
- model.removenodeset("/root/main/inpt/reptdata/wardlist");
- model.removenodeset("/root/main/inpt/reptdata/edulist");
- model.removenodeset("/root/main/inpt/reptdata/etclist");
- //공지사항
- model.removenodeset("/root/main/inpt/board/boarddetl");
- model.removenodeset("/root/send");
- ds_send.setColumn(0, "orddd",ipt_orddd.value); //보고일자
- ds_send.setColumn(0, "plandd",ipt_orddd.value); //업무일자
- ds_send.setColumn(0, "deptflg",deptflg); //특수간호
- ds_send.setColumn(0, "wardcd",wardcd); //병동코드
- ds_send.setColumn(0, "deliveflagcd",reptflg); //전달구분
- submit("TRMNB01207");
- model.refresh();
- var inpttitle = "부서^병상^재원^입원^전입^입실^퇴원^전출^퇴실^사망^수술^가동율^전일\n퇴원예고율^평균\n재원일수^실재원^당일\n입퇴원";
- var deptengabbr = "";
- for(var i = 1 ; i <= grd_deptlist.rows-1 ; i++){
- grd_inptlist.colhidden(GRD_INPTLIST_FIXCOL+i) = false;
- deptengabbr = ds_main_inpt_dept_deptlist.getColumn(i, "deptengabbr");
- inpttitle = inpttitle +"^"+ deptengabbr;
- }
- grd_inptlist.caption = inpttitle;
- if(ds_main_inpt_board_boarddetl.getColumn(0, "staiud")!= "update") {
- model.copyNode("/root/main/inpt/board","/root/temp/board");
- }
- model.refresh();
- }
- function fSearch_InptDataList(){
- // fSearch_inptlist();
- fCaseChange();
- fSearch_board();
- var inpttitle = "부서^병상^재원^입원^전입^입실^퇴원^전출^퇴실^사망^수술^가동율^전일\n퇴원예고율^평균\n재원일수^실재원^당일\n입퇴원";
- var deptengabbr = "";
- for(var i = 0 ; i < group2.switch2.case5.grd_deptlist.rowcount ; i++){
- group2.switch2.case5.grd_inptlist.setFormatColProperty(GRD_INPTLIST_FIXCOL+i+1, "size", 35);
- deptengabbr = utlf_transNullToEmpty(ds_main_inpt_dept_deptlist.getColumn(i, "deptengabbr"));
- inpttitle = inpttitle +"^"+ deptengabbr;
- group2.switch2.case5.grd_inptlist.setCellProperty("Head", GRD_INPTLIST_FIXCOL+i+1, "text", deptengabbr);
- }
- //grd_inptlist.caption = inpttitle;
- // if(model.getValue("/root/main/inpt/board/boarddetl/staiud")!= "update") {
- // model.copyNode("/root/main/inpt/board","/root/temp/board");
- // }
- // "계"항목 수술건수 포함
- var optotal = 0;
- for(var i=0; i<group2.switch2.case5.grd_inptlist.rowcount; i++){
- optotal += Number(ds_main_inpt_inptlist.getColumn(i, "opcnfmdd"));
- }
- ds_main_inpt_inptlist.setColumn(ds_main_inpt_inptlist.rowcount-1, "opcnfmdd", optotal);
-
- }
- /**
- * @group :
- * @ver :
- * @by : 김기용
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 그리드 별 엑셀저장
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function saveExcelAll(){
- var paramLen = saveExcelAll.arguments.length;
- // 마지막 인자가 Boolean일 경우 처리
- var extendsCaptionBool;
- if( typeof(saveExcelAll.arguments[paramLen - 1]) == "boolean" ) {
- extendsCaptionBool = saveExcelAll.arguments[paramLen - 1];
- paramLen = paramLen - 1;
- }
- else{
- extendsCaptionBool = false;
- }
- var tmpParamArray = new Array();
- if( extendsCaptionBool ) {
- for( var i = 0; i < paramLen; i++ ) {
- tmpParamArray[i] = saveExcelAll.arguments[i];
- }
- saveExcelAllWithCaption(tmpParamArray);
- }
- else{
- for( var i = 0; i < paramLen; i++ ) {
- tmpParamArray[i] = saveExcelAll.arguments[i];
- }
- saveExcelAllWithNotCaption(tmpParamArray);
- }
- }
- function saveExcelAllWithCaption( sheetArray ) {
- // alert(gridCaptionArray);
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if( fileName == "" )
- return;
- // var sheetArray = new Array("grd_bizprescondstats|업무현황", "grd_patprescondstats|환자현황", "grd_hdstatsinfo|혈액투석현황", "grd_pdstatsinfo|복막투석현황", "grd_pdbizstatsinfo|복막투석업무현황");
- var sheetArrayLen = sheetArray.length;
- var gridId;
- var gridObj;
- for( var i = 0; i < sheetArray.length; i++ ) {
- gridId = sheetArray[i].split("|")[0];
- gridObj = document.all.item(gridId);
- // saveText() 함수는 Caption저장이 불가능 하여 SaveExcel()을 이용한다.
- gridObj.saveExcel("C:\\Temp\\tmp_TFExcel_" + i +".xls");
-
- }
- // excel application 실행함
- tfexcel.launchnewinstance(0);
- //실행된 excel application에서 새로운 workbook을 생성
- tfexcel.createworkbook();
- tfexcel.activatesheet(1);
- var sheetName;
- var nResult;
- for( var i = 0; i < sheetArrayLen; i++ )
- {
- sheetName = sheetArray[i].split("|")[1];
- if( i > 1 ) {
- nResult = tfexcel.activatesheet(i+1);
- tfexcel.sheetname(i+1) = sheetName;
- }
- else {
- nResult = tfexcel.addsheet(i+1, sheetName);
- }
- if( nResult < 0 ) {
- sysf_messageBox(sheetName + " 저장을", "E009");
- // alert(sheetName + " 오류발생");
- return;
- }
- tfexcel.loadCSV("C:\\Temp\\tmp_TFExcel_" + i + ".xls");
- }
- //tfexcel.loadCSV("C:\\Temp\\tmp_TFExcel.xls");
- //workbook을 저장.
- tfexcel.save(fileName);
-
- //excel application을 종료. excel application 생성 후 반드시 close해야함.
- tfexcel.close();
- var fso = new ActiveXObject("Scripting.FileSystemObject");
- for( var i = 0; i < sheetArrayLen; i++ ) {
- fso.DeleteFile("C:\\Temp\\tmp_TFExcel_" + i + ".xls");
- }
- var rmsg = sysf_messageBox("저장된 Excel을", "Q004");
- // var rmsg = window.alert("저장된 Excel을 실행하시겠습니까?", "알림", 36);
- if( rmsg == 6 )
- window.exec("excel.exe", '\"' + fileName + '\"');
- }
- // 지표관리 조회
- function fSearch_idctlist(){
- var dept = ""
-
- ds_main_idct_idctdlist.clearData();
- ds_main_idct_idctelist.clearData();
- ds_main_idct_idctnlist.clearData();
- ds_main_idct_rptlist.clearData();
- if ( utlf_isNull(ds_temp.getColumn(0, "recdd")) ){
- sysf_messageBox("작성일자","I003");//필수입력입니다
- return;
- }
- if(utlf_isNull(ds_temp.getColumn(0, "deptcd"))){
- dept = dutplcecd;
- }else{
- dept = ds_temp.getColumn(0, "deptcd");
- }
- ds_send_reqdata.setColumn(0, "deptcd", dept );
- ds_send_reqdata.setColumn(0, "recdd", ds_temp.getColumn(0, "recdd") );
-
- var oParam = {};
- oParam.id = "TRMNB01211";
- oParam.service = "wardcareapp.WardBizMngt";
- oParam.method = "reqGetIdctList";
- oParam.inds = "reqdata=ds_send_reqdata";
- oParam.outds = "ds_main_idct_idctdlist=idctdlist ds_main_idct_idctelist=idctelist ds_main_idct_idctnlist=idctnlist ds_main_idct_rptlist=rptlist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNB01211";
- tranf_submit(oParam);
-
- ds_main_idct_idctdlist.rowposition = -1;
- ds_main_idct_idctelist.rowposition = -1;
- ds_main_idct_idctnlist.rowposition = -1;
- ds_main_idct_rptlist.rowposition = -1;
-
- }
-
- // 지표관리 저장
- function fSave_Idctrows(grdflg){
-
- if(sysf_messageBox("","Q002") != 6) return;
- var xIdctPath;
- var idctgrd;
- var updtdata = "Y";
- var duty = "";
- var recdt = utlf_getCurrentDate()+utlf_getCurrentTime().substring(0,4);
- var dept = "";
-
- if(grdflg == "idctdlist"){
- xIdctPath = ds_main_idct_idctdlist;
- idctgrd = group3.grd_idctdlist;
- duty = 1;
- }else if(grdflg == "idctelist"){
- xIdctPath = ds_main_idct_idctelist;
- idctgrd = group3.grd_idctelist;
- duty = 2;
- }else if(grdflg == "idctnlist"){
- xIdctPath = ds_main_idct_idctnlist;
- idctgrd = group3.grd_idctnlist;
- duty = 3;
- }
- if(utlf_isNull(ds_temp.getColumn(0, "deptcd"))){
- dept = dutplcecd;
- }else{
- dept = ds_temp.getColumn(0, "deptcd");
- }
-
- xIdctPath.enableebent = false;
- xIdctPath.updatecontrol = false;
-
- grdf_setStatusColumn(xIdctPath, "status");
- ds_send_savedata_idctinfo.clearData();
-
- for (var i = 0 ; i < idctgrd.rowcount; i++) {
- if( xIdctPath.getRowType(i) == 2 || xIdctPath.getRowType(i) == 4 || xIdctPath.getRowType(i) == 8 ){
- var nRow = ds_send_savedata_idctinfo.addRow();
- ds_send_savedata_idctinfo.copyRow(nRow, xIdctPath, i);
-
- ds_send_savedata_idctinfo.setColumn(nRow, "deptcd",dept);
- ds_send_savedata_idctinfo.setColumn(nRow, "duty", duty);
- ds_send_savedata_idctinfo.setColumn(nRow, "recdd", ds_temp.getColumn(0, "recdd"));
- ds_send_savedata_idctinfo.setColumn(nRow, "recdt", recdt);
- }
- }
-
- xIdctPath.updatecontrol = true;
- xIdctPath.enableebent = true;
-
- var oParam = {};
- oParam.id = "TXMNB01211";
- oParam.service = "wardcareapp.WardBizMngt";
- oParam.method = "reqExeSetIdct";
- oParam.inds = "savedata=ds_send_savedata_idctinfo";
- oParam.outds = "";
- oParam.async = false;
- //oParam.callback = "cf_TXMNB01211";
- tranf_submit(oParam);
-
- group3.btn_idct.click();
- }
-
- // 지표관리 삭제
- function fDel_Idctrows(grdflg){
- var idctchk;
- var idctgrd;
- var xIdctPath;
-
-
- if(grdflg == "idctdlist"){
- idctchk = group3.grd_idctdlist.currentrow;
- idctgrd = group3.grd_idctdlist;
- xIdctPath = ds_main_idct_idctdlist;
- }else if(grdflg == "idctelist"){
- idctchk = group3.grd_idctelist.currentrow;
- idctgrd = group3.grd_idctelist;
- xIdctPath = ds_main_idct_idctelist;
- }else if(grdflg == "idctnlist"){
- idctchk = group3.grd_idctnlist.currentrow;
- idctgrd = group3.grd_idctnlist;
- xIdctPath = ds_main_idct_idctnlist;
- }
- xIdctPath.enableevent = false;
- xIdctPath.updatecontrol = false;
-
- if(grdflg == "idctdlist"){
- if ( !utlf_isNull(xIdctPath.getColumn(idctchk, "seqno")) ) {
- xIdctPath.setRowType(xIdctPath.rowposition, 8);
- }else{
- sysf_messageBox("삭제 할 자료가 ","I004");
- return;
- }
- }else if(grdflg == "idctelist"){
- if ( !utlf_isNull(xIdctPath.getColumn(idctchk, "seqno")) ) {
- xIdctPath.setRowType(xIdctPath.rowposition, 8);
- }else{
- sysf_messageBox("삭제 할 자료가 ","I004");
- return;
- }
- }else if(grdflg == "idctnlist"){
- if ( !utlf_isNull(xIdctPath.getColumn(idctchk, "seqno")) ) {
- xIdctPath.setRowType(xIdctPath.rowposition, 8);
- }else{
- sysf_messageBox("삭제 할 자료가 ","I004");
- return;
- }
- }
-
- xIdctPath.updatecontrol = true;
- xIdctPath.enableevent = true;
- }
-
- // 본원 NEW 24시간 업무보고 저장
- function fSave_Reptrows2(){
-
- if(sysf_messageBox("","Q002") != 6) return;
-
- var updtdata = grdf_getGridUpdateData(formPath.grd_wardlist, "all") ;
- ds_send_sReptPath.assign(updtdata);
-
- if(utlf_isNull(updtdata) || updtdata.rowcount < 1){
- sysf_messageBox("저장할 자료가 존재하지 않습니다.","I");
- return;
- }
-
- var oParam = {};
- oParam.id = "TXMNB01201";
- oParam.service = "wardcareapp.WardBizMngt";
- oParam.method = "reqExeSetRept";
- oParam.inds = "attach=ds_send_attach reqExeSetRept=ds_send_sReptPath:A";
- oParam.outds = "";
- oParam.async = false;
- //oParam.callback = "cf_TXMNB01201";
- tranf_submit(oParam);
-
- fSearch_reptlist();
- }
-
- // 본원 NEW 일별 부서 현황 조회
- function fSearch_InptDataList2(){
- fCaseChange();
-
- //fSearch_board();
-
- var inpttitle = "부서^병상^재원^입원^전입^입실^퇴원^전출^퇴실^사망^수술^가동율^전일\n퇴원예고율^평균\n재원일수^실재원^당일\n입퇴원";
- var deptengabbr = "";
-
- for(var i = 0 ; i < group2.switch2.case5.grd_deptlist.rowcount ; i++){
- group2.switch2.case5.grd_inptlist.setFormatColProperty(GRD_INPTLIST_FIXCOL+i+1, "size", 35);
- deptengabbr = utlf_transNullToEmpty(ds_main_inpt_dept_deptlist.getColumn(i, "deptengabbr"));
- inpttitle = inpttitle +"^"+ deptengabbr;
- group2.switch2.case5.grd_inptlist.setCellProperty("Head", GRD_INPTLIST_FIXCOL+i+1, "text", deptengabbr);
- }
-
- //grd_inptlist.caption = inpttitle;
-
- // "계"항목 수술건수 포함
- var optotal = 0;
- for(var i=0; i<group2.switch2.case5.grd_inptlist.rowcount; i++){
- optotal += Number(ds_main_inpt_inptlist.getColumn(i, "opcnfmdd"));
- }
- //model.makeValue("/root/main/inpt/inptlist["+(grd_inptlist.rows-1)+"]/opcnfmdd", optotal);
-
- }
- ]]></Script>
|