1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477 |
- /*
-
- (TRMNW05600_HSCT CBC.xrw - JScript )
- - Version :
- 1) : Ver.1.00.01
- */
- var xTopAttributePath = "/root/main/topattribute";
- var xRecgrupListPath = "/root/main/recgrup/recgruplist";
- var xHIsgrupListPath = "/root/main/histgrup/histgruplist";
- var xRecHIstPntListPath = "/root/main/rechistpntgrup/rechistpntlist";
- var xClsListPath = "/root/main/detlgrup/detlgruplist"
- var xHIsgrupListBKPath = "/root/temp/histgrup/histgruplist";
- var xlrgListPath = "/root/main/lrggrup/lrggruplist"
- var xCondPath = "/root/main/cond";
- var xClsListBKPath = "/root/temp/main/detlgrup/detlgruplist";
- var xPopWndClsListBKPath = "/root/temp/main/cond/execpopwnddetlgrup/execpopwnddetlgruplist";
- var xExecDetlListPath = "/root/main/cond/execdetlgrup/execdetlgruplist";
- var xPopWndExecDetlListPath = "/root/main/cond/execpopwnddetlgrup/execpopwnddetlgruplist";
- var xDelDeliveExecPrcpListPath = "/root/main/cond/delivedetlgrup/delivedetlgruplist";
- var xBlodReturnReqGrupListPath = "/root/main/cond/blodreturnreqgrup/blodreturnreqgruplist";
- var xBlodExecRecGrupListPath = "/root/main/cond/blodexecrecgrup/blodexecrecgruplist";
- /**
- * @group :
- * @ver : 2007.05.09
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : HSCT CBC 상세점수 display : true , false / 총점 HSCT CBC
- * @param :
- * @return :
- * @---------------------------------------------------
- */
-
- function fColLqidty(arg) {
- if( arg == "one" ) {
- var no2 = 1 ;
- for( var i = 0 ; i < 17 ; i++ ) {
- no2++ ;
- notitl++ ;
- datagrid3.colhidden(no2) = true;
- datagrid3.colwidth(no2) = 10;
- datagrid3.valuematrix(0,no2) = "" ;
- datagrid3.valuematrix(1,no2) = "" ;
- datagrid3.valuematrix(2,no2) = "" ;
- }
- var cNt = 1 ;
- if(cNt > 0 ){
- var no = 1 ;
- var notitl = 0 ;
- for( var i = 0 ; i < cNt ; i++ ) {
- no++ ;
- notitl++ ;
- datagrid3.colhidden(no) = false;
- datagrid3.colwidth(no) = 80;
- datagrid3.valuematrix(0,no) = combo2.value ;
- datagrid3.valuematrix(1,no) = model.getValue("/root/main/cond/patientgrup/patientgruplist["+ notitl +"]/patientnm") ;
- datagrid3.valuematrix(2,no) = "" ;
- }
- }
- } else {
- var no3 = 1 ;
- for( var i = 0 ; i < 17 ; i++ ) {
- no3++ ;
- notitl++ ;
- datagrid3.colhidden(no3) = true;
- datagrid3.colwidth(no3) = 10;
- datagrid3.valuematrix(0,no3) = "" ;
- datagrid3.valuematrix(1,no3) = "" ;
- datagrid3.valuematrix(2,no3) = "" ;
- }
- var cNt = combo8.length ;
- if(cNt > 0 ){
- var no = 1 ;
- var notitl = 0 ;
- for( var i = 0 ; i < cNt ; i++ ) {
- no++ ;
- notitl++ ;
- datagrid3.colhidden(no) = false;
- datagrid3.colwidth(no) = 80;
- datagrid3.valuematrix(0,no) = combo2.value ;
- datagrid3.valuematrix(1,no) = model.getValue("/root/main/cond/patientgrup/patientgruplist["+ notitl +"]/patientnm") ;
- datagrid3.valuematrix(2,no) = "" ;
- }
- }
- }
- datagrid3.refresh();
- }
- /**
- * @group :
- * @ver : 2007.05.09
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : HSCT CBC 상세점수 내역 / 한글명 / 체크 점수 목록
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fRecHistPntList(){
- var iRow = datagrid2.row;
- model.removenode("/root/send");
- model.makeValue("/root/send/pid", model.getvalue(xRecgrupListPath+"["+iRow+"]/pid"));
- model.makeValue("/root/send/execdt", model.getvalue(xRecgrupListPath+"["+iRow+"]/execdt"));
- model.makeValue("/root/send/clsflag", model.getvalue(xRecgrupListPath+"["+iRow+"]/clsflag"));
- model.makeValue("/root/send/recflag", model.getvalue(xRecgrupListPath+"["+iRow+"]/recflag"));
- model.makeValue("/root/send/grupcd", model.getvalue(xRecgrupListPath+"["+iRow+"]/grupcd"));
- if(submit("TRMNW04007")){
- var iRowNum = datagrid1.row;
- }
- var iRow = grd_histgrup.row;
- var iCol = grd_histgrup.col;
- /* HSCT CBC 상세내역 구분 체크 시작 */
- var nodelist = bind1.nodeset;
- var cNt = nodelist.length;
- for(var ins = 1 ; ins <= cNt; ins++ ){// 체크된 값 전체를 돈다.
- for(var i = 1 ; i < grd_histgrup.rows; i++ ){// 전체를 돌면서 그룹에 값이 체크되어 있는것 초기화
- // alert("55 : " + model.getValue(xHIsgrupListPath+"["+ i +"]/supcd"));
- // alert("66 : " + model.getValue("/root/main/rechistpntgrup/serdiaghislist["+ ins +"]/supcd"));
- // alert("77 : " + model.getValue(xHIsgrupListPath+"["+ i +"]/refseq"));
- // alert("88 : " +model.getValue("/root/main/rechistpntgrup/serdiaghislist["+ ins +"]/refseq"));
- if(
- (model.getValue(xHIsgrupListPath+"["+ i +"]/supcd") == model.getValue("/root/main/rechistpntgrup/serdiaghislist["+ ins +"]/supcd")) &&
- (model.getValue(xHIsgrupListPath+"["+ i +"]/refseq") == model.getValue("/root/main/rechistpntgrup/serdiaghislist["+ ins +"]/refseq"))
- ) {
- grd_histgrup.textmatrix(i,1) = "Y";
- grd_histgrup.textmatrix(i,0) = "-";
- }
-
- }
- }
- /* HSCT CBC 상세내역 구분 체크 끝 */
- }
- /**
- * @group :
- * @ver : 2007.06.18
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 환자 상세정보 조회 combo
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fGetPatientInfo(){
- model.removenode("/root/send");
-
- model.makeValue("/root/send/wardcd", combo7.value);
- model.makeValue("/root/send/roomcd", combo2.value);
- if( input3.value != "" ){
- model.makeValue("/root/send/pid", input3.value);
- } else if( model.makeValue("/root/send/pid", combo8.value) != "" ){
- model.makeValue("/root/send/pid", combo8.value);
- }
- if(submit("TRMNW05605")){
- }
- // model.setfocus("button3");
- }
- /**
- * @group :
- * @ver : 2007.06.18
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 환자 정보 조회 combo
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fGetPatientList(){
- model.removenode("/root/send");
-
- model.makeValue("/root/send/wardcd", combo7.value);
- model.makeValue("/root/send/roomcd", combo2.value);
- if(submit("TRMNW05604")){
- }
- fColLqidty();
- // model.setfocus("combo8");
- }
- /**
- * @group :
- * @ver : 2007.06.18
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 병실 조회 combo
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fGetRoomList(){
- model.removenode("/root/send");
-
- model.makeValue("/root/send/wardcd", combo7.value);
- //alert(cmb_wardcd.value);
- if(submit("TRMNW05603")){
- }
-
- // model.setfocus("combo2");
- }
- /**
- * @group :
- * @ver : 2007.06.18
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 병동 조회
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fGetWardList(){
- model.removenode("/root/send");
-
- model.makeValue("/root/send/wardcd", model.getValue("/root/main/cond/wardcdgrup/wardcdgruplist/wardcd"));
- if(submit("TRMNW05602")){
- }
- // model.setfocus("combo7");
- }
- /**
- * @group :
- * @ver : 2007.05.09
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : HSCT CBC init
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fInit(){
- fGetWardList();// 병동코드 리스트
- }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- /* 수혈간호 기록 참고 스크립트 시작 */
- /**
- * @group :
- * @ver : 2007.07.09
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 미수행기록 목록에서 선택항목 체크(더블클릭)
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fGridSel() {
- var sRowCnt2 = datagrid2.rows-datagrid2.fixedrows;
- var iRow = datagrid2.Row ;
- if( datagrid2.labelmatrix(iRow, 1) == "FALSE" || datagrid2.labelmatrix(iRow, 1) == "false" ){
- datagrid2.textmatrix(iRow, 1) = "true" ;
- } else if( datagrid2.labelmatrix(iRow, 1) == "true" ) {
- datagrid2.textmatrix(iRow, 1) = "FALSE" ;
- }
- }
- /**
- * @group :
- * @ver : 2007.07.09
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 수행기록 내역 상세정보 (더블클릭)
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fBlodExecRecDetlinfo() {
- var sRowCnt = datagrid3.rows-datagrid3.fixedrows;
- var iRow = datagrid3.row ;
- model.setValue(output5.attribute("ref"), model.getValue(xBlodExecRecGrupListPath+"["+iRow+"]/blodno"));
- model.setValue(output6.attribute("ref"), model.getValue(xBlodExecRecGrupListPath+"["+iRow+"]/prcpnm"));
- model.setValue(output7.attribute("ref"), model.getValue(xBlodExecRecGrupListPath+"["+iRow+"]/abo") + model.getValue(xBlodExecRecGrupListPath+"["+iRow+"]/rh") );
- model.setValue(input4.attribute("ref"), model.getValue(xBlodExecRecGrupListPath+"["+iRow+"]/tnsstrddtm").substring(0,8));
- model.setValue(input5.attribute("ref"), model.getValue(xBlodExecRecGrupListPath+"["+iRow+"]/tnsstrddtm").substring(8,14));
- model.setValue(input6.attribute("ref"), model.getValue(xBlodExecRecGrupListPath+"["+iRow+"]/tnsendddtm").substring(0,8));
- model.setValue(input7.attribute("ref"), model.getValue(xBlodExecRecGrupListPath+"["+iRow+"]/tnsendddtm").substring(8,14));
- model.setValue(output10.attribute("ref"), model.getValue(xBlodExecRecGrupListPath+"["+iRow+"]/tnsstrnursedeptnm"));
- model.setValue(output11.attribute("ref"), model.getValue(xBlodExecRecGrupListPath+"["+iRow+"]/tnsstrnursenm"));
- model.setValue(output8.attribute("ref"), model.getValue(xBlodExecRecGrupListPath+"["+iRow+"]/tnsendnursedeptnm"));
- model.setValue(output9.attribute("ref"), model.getValue(xBlodExecRecGrupListPath+"["+iRow+"]/tnsendnursenm"));
- model.setValue(combo3.attribute("ref"), model.getValue(xBlodExecRecGrupListPath+"["+iRow+"]/tnssideeffect"));
- model.setValue(input1.attribute("ref"), model.getValue(xBlodExecRecGrupListPath+"["+iRow+"]/caution"));
- model.setValue(radio1.attribute("ref"), model.getValue(xBlodExecRecGrupListPath+"["+iRow+"]/discontinuyn"));
- model.setValue(combo4.attribute("ref"), model.getValue(xBlodExecRecGrupListPath+"["+iRow+"]/discontinu"));
- model.setValue(input8.attribute("ref"), model.getValue(xBlodExecRecGrupListPath+"["+iRow+"]/drugqty"));
- model.setValue(textarea1.attribute("ref"), model.getValue(xBlodExecRecGrupListPath+"["+iRow+"]/tnsrec"));
- /*
- model.makeValue("/root/send/tnsstrnurseid", sp[0] );
- model.makeValue("/root/send/tnsstrnursenm", sp[1] );
- model.makeValue("/root/send/tnsstrnursedeptcd", sp[5] );
- model.makeValue("/root/send/tnsstrnursedeptnm", sp[4] );
- */
- model.setValue(output12.attribute("ref"),
- model.getValue(xBlodExecRecGrupListPath+"["+iRow+"]/tnsstrnurseid")+","+
- model.getValue(xBlodExecRecGrupListPath+"["+iRow+"]/tnsstrnursenm")+","+","+","+
- model.getValue(xBlodExecRecGrupListPath+"["+iRow+"]/tnsstrnursedeptnm")+","+
- model.getValue(xBlodExecRecGrupListPath+"["+iRow+"]/tnsstrnursedeptcd")
- );
- // alert(output12.value);
- model.setValue(output13.attribute("ref"),
- model.getValue(xBlodExecRecGrupListPath+"["+iRow+"]/tnsendnurseid")+","+
- model.getValue(xBlodExecRecGrupListPath+"["+iRow+"]/tnsendnursenm")+","+","+","+
- model.getValue(xBlodExecRecGrupListPath+"["+iRow+"]/tnsendnursedeptnm")+","+
- model.getValue(xBlodExecRecGrupListPath+"["+iRow+"]/tnsendnursedeptcd")
- );
- // alert(output13.value);
- // model.getValue(xBlodExecRecGrupListPath+"["+iRow+"]/tnsendnurseid")+","+
- // model.getValue(xBlodExecRecGrupListPath+"["+iRow+"]/tnsendnursenm")+","+
- // model.getValue(xBlodExecRecGrupListPath+"["+iRow+"]/tnsendnursedeptcd")+","+
- // model.getValue(xBlodExecRecGrupListPath+"["+iRow+"]/tnsendnursenm")
- model.refresh();
- var sRowCnt2 = datagrid2.rows-datagrid2.fixedrows;
-
- for(var i=1; i<= sRowCnt2; i++){ // 선택한 값이 불출신청 상태인지 체크
- datagrid2.textmatrix(i, 1) = "FALSE" ;
- }
- }
- /**
- * @group :
- * @ver : 2007.07.16
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 수혈 수행 내역 리스트
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fGetBlodExecRecList(blodpidflag){
- var sRowCnt = datagrid5.rows-datagrid5.fixedrows;
- if( model.getValue("/root/main/cond/patientgrupInfo/patientgruplistInfo/pid") == "" && model.getValue("/root/main/cond/blodno") == "" ){
-
- messageBox("혈액번호/등록번호를 ","C001");
- model.setfocus("input13");
- return;
-
- }
- model.refresh();
- model.makeValue("/root/send/blodpidflag",blodpidflag);
- model.makeValue("/root/send/blodno", input13.value );
- model.makeValue("/root/send/prcpddfrom", input9.value );
- model.makeValue("/root/send/prcpddto", input10.value );
- model.makeValue("/root/send/wardcd", combo5.value );
- model.makeValue("/root/send/roomcd", combo1.value );
- model.makeValue("/root/send/hngnm", combo6.value );
- model.makeValue("/root/send/pid", input12.value );
- if(submit("TRMNW05624")){
- }
- }
- /**
- * @group :
- * @ver : 2007.05.09
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 수혈간호기록 기록저장 버튼
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fTnsRecSave(){
- if(model.getValue("/root/main/cond/tnsnurserecgrup/tnsnurserecgruplist/blodno") == ""){
- messageBox("혈액번호를 ","C002");
- return;
- }
- if(model.getValue("/root/main/cond/tnsnurserecgrup/tnsnurserecgruplist/prcpnm") == ""){
- messageBox("혈액명을 ","C002");
- return;
- }
- if(model.getValue("/root/main/cond/tnsnurserecgrup/tnsnurserecgruplist/abo") == ""){
- messageBox("혈액형을 ","C002");
- return;
- }
- if(model.getValue("/root/main/cond/tnsnurserecgrup/tnsnurserecgruplist/tnsstrdd") == "" || model.getValue("/root/main/cond/tnsnurserecgrup/tnsnurserecgruplist/tnsstrtm") == "" ) {
- messageBox("수혈시작시간을 ","C001");
- return;
- }
- if(model.getValue("/root/main/cond/tnsnurserecgrup/tnsnurserecgruplist/tnsenddd") == "" || model.getValue("/root/main/cond/tnsnurserecgrup/tnsnurserecgruplist/tnsendtm") == "" ) {
- messageBox("수혈종료시간을 ","C001");
- return;
- }
- if(model.getValue("/root/main/cond/tnsnurserecgrup/tnsnurserecgruplist/tnsstrnursdeptnm") == "" || model.getValue("/root/main/cond/tnsnurserecgrup/tnsnurserecgruplist/tnsstrnursnm") == "" || model.getValue("/root/main/cond/tnsnurserecgrup/tnsnurserecgruplist/tnsstrnursall") == "") {
- messageBox("수혈시작 간호사를 ","C002");
- return;
- }
- if(model.getValue("/root/main/cond/tnsnurserecgrup/tnsnurserecgruplist/tnsendnursdeptnm") == "" || model.getValue("/root/main/cond/tnsnurserecgrup/tnsnurserecgruplist/tnsendnursnm") == "" || model.getValue("/root/main/cond/tnsnurserecgrup/tnsnurserecgruplist/tnsendnursall") == "") {
- messageBox("수혈종료 간호사를 ","C002");
- return;
- }
- if(model.getValue("/root/main/cond/tnsnurserecgrup/tnsnurserecgruplist/tnsrec") == "" ) {
- messageBox("수혈기록을 ","C001");
- return;
- }
- model.removenode("/root/send");
- model.makeValue("/root/send/pid",model.getValue("/root/main/cond/patientgrupInfo/patientgruplistInfo/pid") ) ;
- model.makeValue("/root/send/blodno",model.getValue("/root/main/cond/tnsnurserecgrup/tnsnurserecgruplist/blodno") ) ;
- model.makeValue("/root/send/tnsstrddtm",model.getValue("/root/main/cond/tnsnurserecgrup/tnsnurserecgruplist/tnsstrdd") + model.getValue("/root/main/cond/tnsnurserecgrup/tnsnurserecgruplist/tnsstrtm") );
- model.makeValue("/root/send/tnsendddtm",model.getValue("/root/main/cond/tnsnurserecgrup/tnsnurserecgruplist/tnsenddd") + model.getValue("/root/main/cond/tnsnurserecgrup/tnsnurserecgruplist/tnsendtm") );
-
- model.makeValue("/root/send/tnsstrnursall",model.getValue("/root/main/cond/tnsnurserecgrup/tnsnurserecgruplist/tnsstrnursall") );
- model.makeValue("/root/send/tnsendnursall",model.getValue("/root/main/cond/tnsnurserecgrup/tnsnurserecgruplist/tnsendnursall") );
- model.makeValue("/root/send/sideeffectcomcodelist",model.getValue("/root/main/cond/tnsnursereccdgrup/sideeffectcomcodelist") );
- model.makeValue("/root/send/caution",model.getValue("/root/main/cond/tnsnurserecgrup/tnsnurserecgruplist/caution") );
- model.makeValue("/root/send/discontinuyn",model.getValue("/root/main/cond/tnsnurserecgrup/tnsnurserecgruplist/discontinuyn") );
- model.makeValue("/root/send/discontinucomcodelist",model.getValue("/root/main/cond/tnsnursereccdgrup/discontinucomcodelist") );
- model.makeValue("/root/send/drugqty",model.getValue("/root/main/cond/tnsnurserecgrup/tnsnurserecgruplist/drugqty") );
- model.makeValue("/root/send/tnsrec",model.getValue("/root/main/cond/tnsnurserecgrup/tnsnurserecgruplist/tnsrec") );
- var sp = model.getValue("/root/main/cond/tnsnurserecgrup/tnsnurserecgruplist/tnsstrnursall").split(",");
- //alert(sp);
- model.makeValue("/root/send/tnsstrnurseid", sp[0] );
- model.makeValue("/root/send/tnsstrnursenm", sp[1] );
- model.makeValue("/root/send/tnsstrnursedeptcd", sp[5] );
- model.makeValue("/root/send/tnsstrnursedeptnm", sp[4] );
- var sp2 = model.getValue("/root/main/cond/tnsnurserecgrup/tnsnurserecgruplist/tnsendnursall").split(",");
- //alert(sp2);
- model.makeValue("/root/send/tnsendnurseid", sp2[0] );
- model.makeValue("/root/send/tnsendnursenm", sp2[1] );
- model.makeValue("/root/send/tnsendnursedeptcd", sp2[5] );
- model.makeValue("/root/send/tnsendnursedeptnm", sp2[4] );
- /* 저장 / 업데이트 구분 체크 시작 */
- var check = "" ;
- var sRowCnt = datagrid3.rows-datagrid3.fixedrows;
-
- for(var i=1; i<= sRowCnt; i++){ // 선택한 값이 불출신청 상태인지 체크
- // alert(datagrid3.labelmatrix(i, 3));
- //
- // alert(output5.value);
- if( datagrid3.labelmatrix(i, 3) == output5.value ) {
- check = "Y" ;
- }
- }
- /* 저장 / 업데이트 구분 체크 끝 */
- if( check != "Y" ){// 신규 저장
- //alert("신규 저장");
- model.makeValue("/root/send/detlgrup",datagrid2.getupdatedataAll("i"));
- if(messageBox("","Q002") != 6) return;// 저장하시겠습니까?
- if(submit("TXMNR01031")){
- model.copyNode("/root/hidden/main","/root/main");
- var pidblodflag = '';
- if(input12.value != ""){
- pidblodflag = 'pid';
- } else if (input13.value !="") {
- pidblodflag = 'blod';
- }
- fBlodDeliveList(pidblodflag);// 혈액불출내역 리스트
- fGetBlodNoExecRecList(pidblodflag); //수혈 미수행 내역 리스트
- fGetBlodExecRecList(pidblodflag); //수혈 수행 내역 리스트
- }
- } else if( check == "Y") {// 업데이트
- //alert("업데이트");
- if(messageBox("","Q002") != 6) return;// 저장하시겠습니까?
- model.makeValue("/root/send/detlgrup",datagrid3.getupdatedataAll("i"));
- if(submit("TXMNR01032")){
- model.copyNode("/root/hidden/main","/root/main");
- var pidblodflag = '';
- if(input12.value != ""){
- pidblodflag = 'pid';
- } else if (input13.value !="") {
- pidblodflag = 'blod';
- }
- fBlodDeliveList(pidblodflag);// 혈액불출내역 리스트
- fGetBlodNoExecRecList(pidblodflag); //수혈 미수행 내역 리스트
- fGetBlodExecRecList(pidblodflag); //수혈 수행 내역 리스트
- }
- }
- }
- /**
- * @group :
- * @ver : 2007.05.09
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 미수행기록목록에서 선택한 혈액정보 기록버튼
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fExecRec(){
- var sRowCnt = datagrid2.rows-datagrid2.fixedrows;
- var cnt = 0 ;
- model.removenode("/root/send");
- model.makeValue("/root/send/detlgrup",datagrid2.getupdatedataAll("i"));
-
- var blodno = "" ;
- var prcpnm = "" ;
- var aborh = "" ;
-
- for(var i=1; i<= sRowCnt; i++){
- // alert(datagrid2.labelmatrix(i, 1));
- if( datagrid2.labelmatrix(i, 1) == "true" ) {
- blodno += datagrid2.labelmatrix(i, 2) + "," ;
- prcpnm += datagrid2.labelmatrix(i, 3) + "," ;
- aborh += datagrid2.labelmatrix(i, 4)+datagrid2.labelmatrix(i, 5) + "," ;
- cnt = cnt + 1;
- }
- }
- // alert(blodno.substr(0,blodno.length-1));
- if(cnt < 1){
- messageBox("선택 정보가 ","I004");
- return;
- };
- fClearChildNode("/root/main/cond/tnsnurserecgrup/tnsnurserecgruplist");
- fClearChildNode("/root/main/cond/tnsnursereccdgrup/sideeffectcomcodelist");
- fClearChildNode("/root/main/cond/tnsnursereccdgrup/discontinucomcodelist");
-
- model.refresh();
- model.setValue(output5.attribute("ref"), blodno.substr(0,blodno.length-1) );
- model.setValue(output6.attribute("ref"), prcpnm.substr(0,prcpnm.length-1) );
- model.setValue(output7.attribute("ref"), aborh.substr(0,aborh.length-1) );
- model.setValue(radio1.attribute("ref"), "N" );
- model.setValue(input4.attribute("ref"), getCurrentDate() );
- model.setValue(input5.attribute("ref"), getCurrentTime() );
- if(submit("TRMNW05623")){
- model.copyNode("/root/hidden/main","/root/main");
- }
- }
- /**
- * @group :
- * @ver : 2007.07.09
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 혈액요청서 선택했을때...
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fBlodReqDoc(){
- var sRowCnt = datagrid7.rows-datagrid7.fixedrows;
-
- var cnt = 0 ;
- model.removeNode ("/root/send/report");
- for(var i=1; i<= sRowCnt; i++){ // 선택한 값이 불출신청 상태인지 체크
- // alert(datagrid7.labelmatrix(i, 1));
- if( datagrid7.labelmatrix(i, 1) == "true" ) {
- cnt = cnt + 1;
- if( datagrid7.labelmatrix(i, 2) != "매칭검사" ) {
-
- messageBox("매칭검사 상태 이외에는 혈액요청서를 출력 ","E001");
- return;
-
- }
- if( datagrid7.labelmatrix(i, 8).length < 5 ) {
-
- messageBox("혈액번호가 ","I004");
- return;
-
- }
- model.makeValue("/root/send/report/delivedetlgrup/delivedetlgruplist["+cnt+"]","");
- model.copyNode( "/root/send/report/delivedetlgrup/delivedetlgruplist["+cnt+"]", "/root/main/cond/delivedetlgrup/delivedetlgruplist["+i+"]" );
- // alert(instance1.selectSingleNode("/root/send/report/delivedetlgrup/delivedetlgruplist"+"["+cnt+"]").xml);
- }
- }
- if(cnt < 1){
- messageBox("선택 정보가 ","I004");
- return;
- };
- model.makeValue("/root/send/report/patientnm",model.getValue("/root/main/cond/patientgrupInfo/patientgruplistInfo/patientnm") );
- model.makeValue("/root/send/report/pid",model.getValue("/root/main/cond/patientgrupInfo/patientgruplistInfo/pid") );
- model.makeValue("/root/send/report/sexage",model.getValue("/root/main/cond/patientgrupInfo/patientgruplistInfo/sexage") );
- model.makeValue("/root/send/report/btypee",model.getValue("/root/main/cond/patientgrupInfo/patientgruplistInfo/btype") );
-
-
- exeReportPreview("RFMNR01000", "XMLSTR");
-
- }
- /**
- * @group :
- * @ver : 2007.07.09
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 혈액불출 내역 선택 삭제
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fDelDeliveExecPrcp(){
- var sRowCnt = datagrid7.rows-datagrid7.fixedrows;
- var cnt = 0 ;
- for(var i=1; i<= sRowCnt; i++){ // 선택한 값이 불출신청 상태인지 체크
- // alert(datagrid7.labelmatrix(i, 1));
- if( datagrid7.labelmatrix(i, 1) == "true" ) {
- cnt = cnt + 1;
- if( datagrid7.labelmatrix(i, 2) != "불출신청" ) {
-
- messageBox("불출신청 이외의 상태에서는 삭제할 수 ","I004");
- return;
-
- }
- }
- }
- if(cnt < 1){
- messageBox("선택 정보가 ","I004");
- return;
- };
- alert("개발 중입니다.");
- return ;
- // model.removenode("/root/send");
- model.refresh();
- model.makeValue("/root/send/blodpidflag",blodpidflag);
- model.makeValue("/root/send/blodno", input13.value );
- model.makeValue("/root/send/prcpddfrom", input9.value );
- model.makeValue("/root/send/prcpddto", input10.value );
- model.makeValue("/root/send/wardcd", combo5.value );
- model.makeValue("/root/send/roomcd", combo1.value );
- model.makeValue("/root/send/hngnm", combo6.value );
- model.makeValue("/root/send/pid", input12.value );
- if(submit("TRMNW05621")){
- }
- //model.setfocus("input13");
- fGetExecDetlList();// 수행처방내역리스트
- fGettDeliveDetlList();// 불출신청 내역 리스트
- }
- /**
- * @group :
- * @ver : 2007.07.16
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 수혈 미수행 내역 리스트
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fGetBlodNoExecRecList(blodpidflag){
- var sRowCnt = datagrid5.rows-datagrid5.fixedrows;
- if( model.getValue("/root/main/cond/patientgrupInfo/patientgruplistInfo/pid") == "" && model.getValue("/root/main/cond/blodno") == "" ){
-
- messageBox("혈액번호/등록번호를 ","C001");
- model.setfocus("input13");
- return;
-
- }
- /* 수혈간호기록 내용 초기화 */
- fClearChildNode("/root/main/cond/tnsnurserecgrup/tnsnurserecgruplist");
- fClearChildNode("/root/main/cond/tnsnursereccdgrup/sideeffectcomcodelist");
- fClearChildNode("/root/main/cond/tnsnursereccdgrup/discontinucomcodelist");
-
- model.refresh();
- model.makeValue("/root/send/blodpidflag",blodpidflag);
- model.makeValue("/root/send/blodno", input13.value );
- model.makeValue("/root/send/prcpddfrom", input9.value );
- model.makeValue("/root/send/prcpddto", input10.value );
- model.makeValue("/root/send/wardcd", combo5.value );
- model.makeValue("/root/send/roomcd", combo1.value );
- model.makeValue("/root/send/hngnm", combo6.value );
- model.makeValue("/root/send/pid", input12.value );
- if(submit("TRMNW05621")){
- }
- }
- /**
- * @group :
- * @ver : 2007.05.09
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 혈액불출내역의 혈액반납의뢰 저장
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fBlodReturnSave(){
- var sRowCnt = datagrid1.rows-datagrid1.fixedrows;
- var cnt = 0 ;
- model.removenode("/root/send");
- model.makeValue("/root/send/detlgrup",datagrid1.getupdatedataAll("i"));
-
- var saveyn = 0 ;
- for(var i=1; i<= sRowCnt; i++){
- //alert(datagrid1.labelmatrix(i, 1));
- if( datagrid1.labelmatrix(i, 1) == "true" ) {
- cnt = cnt + 1;
- // ****************************** 반납사유 필수 로직 추가 ***************************************
- //alert(model.getValue(xBlodReturnReqGrupListPath+"["+i+"]/etcprcpresncd"));
- if(model.getValue(xBlodReturnReqGrupListPath+"["+i+"]/reqflag") == "-" || model.getValue(xBlodReturnReqGrupListPath+"["+i+"]/reqflag") == ""){//반납/폐기를 체크
- messageBox("반납/폐기를 ","C002");
- return;
- }
- if(model.getValue(xBlodReturnReqGrupListPath+"["+i+"]/returnabandondate") == "-" || model.getValue(xBlodReturnReqGrupListPath+"["+i+"]/returnabandondate") == ""){//반납/폐기일 체크
- messageBox("반납/폐기일을 ","C002");
- return;
- }
- if(model.getValue(xBlodReturnReqGrupListPath+"["+i+"]/etcprcpresncd") == "-" || model.getValue(xBlodReturnReqGrupListPath+"["+i+"]/etcprcpresncd") == ""){//반납사유 체크
- messageBox("반납/폐기 사유를 ","C002");
- return;
- }
- }
- }
- if(cnt < 1){
- messageBox("선택 정보가 ","I004");
- return;
- };
- if(submit("TXMNR01030")){
- model.copyNode("/root/hidden/main","/root/main");
- }
- /* 반납/폐기 이후 정보 조회 실행 */
- var pidblodflag = '';
- if(input12.value != ""){
- pidblodflag = 'pid';
- } else if (input13.value !="") {
- pidblodflag = 'blod';
- }
- fBlodDeliveList(pidblodflag); //혈액불출 리스트 조회버튼
- fGetBlodNoExecRecList(pidblodflag); //수혈 미수행 내역 리스트
- }
- /**
- * @group :
- * @ver : 2007.07.16
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 혈액불출 내역 조회 리스트
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fBlodDeliveList(blodpidflag){
- var sRowCnt = datagrid5.rows-datagrid5.fixedrows;
- if( model.getValue("/root/main/cond/patientgrupInfo/patientgruplistInfo/pid") == "" && model.getValue("/root/main/cond/blodno") == "" ){
-
- messageBox("혈액번호/등록번호를 ","C001");
- model.setfocus("input13");
- return;
-
- }
- model.removenode("/root/send");
- model.refresh();
- model.makeValue("/root/send/blodpidflag",blodpidflag);
- model.makeValue("/root/send/blodno", input13.value );
- model.makeValue("/root/send/prcpddfrom", input9.value );
- model.makeValue("/root/send/prcpddto", input10.value );
- model.makeValue("/root/send/wardcd", combo5.value );
- model.makeValue("/root/send/roomcd", combo1.value );
- model.makeValue("/root/send/hngnm", combo6.value );
- model.makeValue("/root/send/pid", input12.value );
- if(submit("TRMNW05620")){
- }
- model.setfocus("input13");
- }
- /**
- * @group :
- * @ver : 2007.06.18
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 불출신청 내역 조회 리스트
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fGettDeliveDetlList(){
- if( model.getValue("/root/main/cond/wardcdgrup/wardcdgruplist") == "" ){
-
- // messageBox("병동을 ","C002");
- // model.setfocus("combo7");
- // return;
-
- }
- model.removenode("/root/send");
-
- model.makeValue("/root/send/prcpddfrom", input2.value);
- model.makeValue("/root/send/prcpddto", input11.value);
- model.makeValue("/root/send/wardcd", combo7.value);
- model.makeValue("/root/send/roomcd", combo2.value);
- model.makeValue("/root/send/hngnm", combo8.value);
- model.makeValue("/root/send/pid", input3.value);
- if(submit("TRMNW05609")){
- }
- }
- /**
- * @group :
- * @ver : 2007.04.02
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 수행처방 선택시 체크사항
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSelchange(){
- var iRow = datagrid5.row ;
- // alert(parseInt(model.getValue(xExecDetlListPath+"["+iRow+"]/prcpqty")));
- //
- // alert(parseInt(model.getValue(xExecDetlListPath+"["+iRow+"]/appno")));
- if( parseInt(model.getValue(xExecDetlListPath+"["+iRow+"]/prcpqty")) <= parseInt(model.getValue(xExecDetlListPath+"["+iRow+"]/appno")) ) {
- model.setValue(xExecDetlListPath+"["+iRow+"]/sel", "false" ) ;
- messageBox("신청수량이 처방수량보다 클 수 ","I004");
- return;
- }
- if( model.getValue(xExecDetlListPath+"["+iRow+"]/prcpstatcd") == "D/C") {
- model.setValue(xExecDetlListPath+"["+iRow+"]/sel", "false" ) ;
- messageBox("D/C 상태에서는 신청할 수 ","I004");
- return;
- } else if( model.getValue(xExecDetlListPath+"["+iRow+"]/prcpstatcd") == "의사") {
- model.setValue(xExecDetlListPath+"["+iRow+"]/sel", "false" ) ;
- messageBox("의사 상태에서는 신청할 수 ","I004");
- return;
- } else if( model.getValue(xExecDetlListPath+"["+iRow+"]/prcpstatcd") == "완료") {
- model.setValue(xExecDetlListPath+"["+iRow+"]/sel", "false" ) ;
- messageBox("완료 상태에서는 신청할 수 ","I004");
- return;
- }
-
- }
- /**
- * @group :
- * @ver : 2007.04.02
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 그리드의 값이 변경되었을때, 상태값을 변경한다.
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fChangedGridCol(){
- var sDetlGrupRow = datagrid5.row;
- var sDetlGrupBKRow=0;
- var num = model.getValue(xPopWndExecDetlListPath+"["+sDetlGrupRow+"]/num");
- for(var i=1; i<= getNodesetCount(xPopWndClsListBKPath); i++){
- if(model.getValue(xPopWndClsListBKPath+"["+i+"]/num") == num){
- sDetlGrupBKRow = i;
- break;
- }
- }
- if(event.keyCode == "32") {
- messageBox("신청수량에 스페이스를 넣을 수 ","I004");
- model.setValue(xPopWndExecDetlListPath+"["+sDetlGrupRow+"]/stat","-");
- model.setValue(xPopWndExecDetlListPath+"["+sDetlGrupRow+"]/appno","");
- datagrid5.refresh();
- return;
- }
- var irr = datagrid5.textmatrix(sDetlGrupRow,6) ;
- if(model.getValue(xPopWndExecDetlListPath+"["+sDetlGrupRow+"]/appno") == "0" || model.getValue(xPopWndExecDetlListPath+"["+sDetlGrupRow+"]/appno") == ""){
- model.setValue(xPopWndExecDetlListPath+"["+sDetlGrupRow+"]/stat","-");
- datagrid5.rebuild();
- //return;
- }
- // alert(instance1.selectSingleNode(xPopWndExecDetlListPath+"["+sDetlGrupRow+"]").xml);
- //
- // alert(instance1.selectSingleNode(xPopWndClsListBKPath+"["+sDetlGrupBKRow+"]").xml);
- if(instance1.selectSingleNode(xPopWndExecDetlListPath+"["+sDetlGrupRow+"]").xml != instance1.selectSingleNode(xPopWndClsListBKPath+"["+sDetlGrupBKRow+"]").xml){
- model.setValue(xPopWndExecDetlListPath+"["+sDetlGrupRow+"]/stat","I");
- datagrid5.rebuild();
- }
- }
- /**
- * @group :
- * @ver : 2007.05.09
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : HSCT CBC init
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fPopWndSave(){
- var sRowCnt = datagrid5.rows-datagrid5.fixedrows;
- model.removenode("/root/send");
- model.makeValue("/root/send/detlgrup",datagrid5.getupdatedataAll("i"));
-
- var saveyn = 0 ;
- for(var i=1; i<= sRowCnt; i++){
- if(model.getValue(xPopWndExecDetlListPath+"["+i+"]/stat") != "-") {
- saveyn = 1 ;
- }
- if(model.getValue(xPopWndExecDetlListPath+"["+i+"]/stat") != "-" && model.getValue(xPopWndExecDetlListPath+"["+i+"]/appno") == ""){
- messageBox("신청수량은 ","I003");
- return;
- }
- // if( !isNumber(model.getValue(xPopWndExecDetlListPath+"["+i+"]/appno")) ) {
- //
- // messageBox("숫자형을 ","C001");
- // return;
- //
- // }
- if( parseInt(model.getValue(xPopWndExecDetlListPath+"["+i+"]/appno")) < 1 || parseInt(model.getValue(xPopWndExecDetlListPath+"["+i+"]/appno")) == " " ) {
- messageBox("신청수량은 1건 이하로 입력할 수 ","E001");
- return;
- }
-
- if( parseInt(model.getValue(xPopWndExecDetlListPath+"["+i+"]/delivepossno")) < parseInt(model.getValue(xPopWndExecDetlListPath+"["+i+"]/appno")) ) {
- messageBox("신청수량은 불출수량보다 크게 입력 ","E001");
- return;
- }
- // alert( model.getValue(xPopWndExecDetlListPath+"["+i+"]/prcphopedd") );
- // alert( model.getValue(xPopWndExecDetlListPath+"["+i+"]/prcphopetm") );
- if(model.getValue(xPopWndExecDetlListPath+"["+i+"]/prcphopedd") == "" || model.getValue(xPopWndExecDetlListPath+"["+i+"]/prcphopetm") == ""){
- messageBox("예약일자/예약시간은 ","I003");
- return;
- }
-
- }
- if(saveyn <= 0 ){
- messageBox("수정사항이 없어 저장 ","E001");
- return;
- }
-
- //alert("result : " + saveyn);
- // if(saveyn <= 0 ){
- // messageBox("수정사항이 없어 저장 ","E001");
- // return;
- // }
- //alert(model.getValue("/root/main/cond/clsflag"));
- //alert(model.getValue("/root/main/cond/recflag"));
-
-
- //if(messageBox("","Q002") != 6) return;
- //alert(model.getValue("/root/main/cond/todd"));
- // model.makeValue("/root/send/lrggrupcd", model.getValue(xCondPath+"/lrggrupcd"));
- // model.makeValue("/root/send/clsflag", model.getValue("/root/main/cond/clsflag"));
- // model.makeValue("/root/send/recflag", model.getValue("/root/main/cond/recflag"))
- // model.makeValue("/root/send/todd2", model.getValue("/root/main/cond/todd"))
- //alert(model.getValue("/root/send/todd2"));
- if(submit("TXMNR01008")){
- model.copyNode("/root/hidden/main","/root/main");
- }
- // grd_detlgrup.row = 1;
- window.close();
- }
- /**
- * @group :
- * @ver : 2007.05.09
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : HSCT CBC init
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fPopWndInit(){
- model.makeValue("/root/send/prcpddfrom", opener.window.javascript.getParameter("prcpddfrom") );
- model.makeValue("/root/send/prcpddto", opener.window.javascript.getParameter("prcpddto") );
- model.makeValue("/root/send/wardcd", opener.window.javascript.getParameter("wardcd") );
- model.makeValue("/root/send/roomcd", opener.window.javascript.getParameter("roomcd") );
- model.makeValue("/root/send/pid", opener.window.javascript.getParameter("pid") );
- model.makeValue("/root/send/queryprcpdd", opener.window.javascript.getParameter("queryprcpdd") );
- model.makeValue("/root/send/queryprcpno", opener.window.javascript.getParameter("queryprcpno") );
- model.makeValue("/root/send/queryprcphistno", opener.window.javascript.getParameter("queryprcphistno") );
- //alert(prcpddfrom); alert(prcpddto); alert(wardcd); alert(roomcd); alert(pid);
-
- if(submit("TRMNW05607")){
- model.copyNode("/root/temp/main","/root/main");
- }
- }
- /**
- * @group :
- * @ver : 2007.06.18
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 혈액불출신청 팝업
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fPopWnd(){
- var iRows = datagrid5.rows;
- var queryprcpdd = "" ;
- var queryprcpno = "" ;
- var queryprcphistno = "" ;
- var checkcnt = 0 ;
- for(var i = 1 ; i < datagrid5.rows; i++ ) {// 전체를 돌면서 그룹에 값이 체크되어 있는것 초기화
- if( model.getValue(xExecDetlListPath+"["+ i +"]/sel") == "true" ) {
- // alert("111");
- queryprcpdd = queryprcpdd + "'" + model.getValue(xExecDetlListPath+"["+ i +"]/prcpdd2") + "'," ;
- queryprcpno = queryprcpno + "" + model.getValue(xExecDetlListPath+"["+ i +"]/prcpno") + "," ;
- // alert(model.getValue(xExecDetlListPath+"["+ i +"]/prcphistno"));
- queryprcphistno = queryprcphistno + "" + model.getValue(xExecDetlListPath+"["+ i +"]/prcphistno") + "," ;
- checkcnt++ ;
- } else {
- // alert("222");
-
- }
-
- }
- if( checkcnt <= 0 ) {
-
- messageBox("수혈처방내역을 ","C002");
- return 0 ;
-
- }
- queryprcpdd = queryprcpdd.replace(/-/g,"")
- // alert(queryprcpdd.replace(/-/g,""));
- // alert(queryprcpdd.substr(0,queryprcpdd.length-1));
- // alert(queryprcpno.substr(0,queryprcpno.length-1));
- // alert(queryprcphistno.substr(0,queryprcphistno.length-1));
- queryprcpdd = queryprcpdd.substr(0,queryprcpdd.length-1) ;
- queryprcpno = queryprcpno.substr(0,queryprcpno.length-1) ;
- queryprcphistno = queryprcphistno.substr(0,queryprcphistno.length-1) ;
- // for(var i = 0 ; i < data.length; i++ ) {
- //
- // queryprcpno = queryprcpno + data[i] ;
- //
- // }
- setParameter("prcpddfrom", input2.value);
- setParameter("prcpddto", input11.value);
- setParameter("wardcd", combo7.value);
- setParameter("roomcd", combo2.value);
- setParameter("pid", input3.value);
- setParameter("queryprcpdd", queryprcpdd);
- setParameter("queryprcpno", queryprcpno);
- setParameter("queryprcphistno", queryprcphistno);
- var left = event.screenX-1000;
- var top = event.screenY+50;
- modal("SMMNR01001",1,left,top);
- }
- /**
- * @group :
- * @ver : 2007.06.18
- * @by : 정찬성
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 수행처방내역 조회 리스트
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fGetExecDetlList(){
- if( model.getValue("/root/main/cond/wardcdgrup/wardcdgruplist") == "" ){
-
- // messageBox("병동을 ","C002");
- // model.setfocus("combo7");
- // return;
-
- }
- model.removenode("/root/send");
- model.makeValue("/root/send/prcpddfrom", input2.value);
- model.makeValue("/root/send/prcpddto", input11.value);
- model.makeValue("/root/send/wardcd", combo7.value);
- model.makeValue("/root/send/roomcd", combo2.value);
- model.makeValue("/root/send/hngnm", combo8.value);
- model.makeValue("/root/send/pid", input3.value);
- if(submit("TRMNW05606")){
- }
- }
- /* 수혈간호 기록 참고 스크립트 끝 */
|