123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155 |
- /**
- * 항목별 하드코드 반환 - 추후에 고도화 예정
- * recflag = 항목코드
- */
- function fGetHardcdno_title(recflag, screenid){
-
- var hardcdno;
- var sTitle = "";
-
- model.makeValue("/root/send/reqdata/recflag", recflag);
-
- if(submit("TRMQI00105")){
- var hardcdno = model.getValue("/root/hidden/hardcdinfo/hardcdlist/hardcdno");
- var sTitle = model.getValue("/root/hidden/hardcdinfo/hardcdlist/title");
- }
-
-
- // switch (recflag) {
- // case "CI01": //[폐렴]]
- // hardcdno = 5640 ;
- // sTitle = "폐렴 일괄목록";
- // break;
- // case "CI02": //[중환자]]
- // hardcdno = 5641 ;
- // sTitle = "중환자 일괄목록";
- // break;
- // case "CI03": //[수술 감염 예방적 항생제]]
- // hardcdno = 5642 ;
- // sTitle = "수술 감염 예방적 항생제 일괄목록";
- // break;
- // case "CI04": //[CABG]]
- // hardcdno = 5643 ;
- // sTitle = "CABG 일괄목록";
- // break;
- // case "CI05": //[급성심근경색증]]
- // hardcdno = 5644 ;
- // sTitle = "급성심근경색증 일괄목록";
- // break;
- // case "CI06": //[PCI]]
- // hardcdno = 5645 ;
- // sTitle = "PCI 일괄목록";
- // break;
- // case "CI07":
- // hardcdno = 5646 ;
- // sTitle = "일괄목록";
- // break;
- // case "CI08":
- // hardcdno = 5647 ;
- // sTitle = "일괄목록";
- // break;
- // case "CI09": //[폐암]]
- // hardcdno = 5648 ;
- // sTitle = "폐암일괄목록";
- // break;
- // case "CI10": //[폐암(수술환자대상)]]
- // hardcdno = 5649 ;
- // sTitle = "폐암(수술환자대상)일괄목록";
- // break;
- // case "CI11": //[유방암]]
- // hardcdno = 5663 ;
- // sTitle = "유뱡암일괄목록";
- // break;
- // case "CI12": //[유방암]]
- // hardcdno = 5639 ;
- // sTitle = "폐럼(본원)일괄목록";
- // break;
- // case "CI13":
- // hardcdno = 5670 ;
- // sTitle = "심폐소생술 일괄목록";
- // break;
- //
- // default:
- // sTitle = "일괄목록";
- // break;
- // }
-
- if(screenid == "SMMQI00102"){
- sTitle = sTitle + " 항목수정";
- lbl_title.text = sTitle;
- }
-
- return hardcdno;
- }
- function fSearch() {
- copyNodesetType("/root/send/condition", "/root/main/cond", "replace", model, opener.model);
- model.refresh();
-
- var iCols = grd_list.cols;
- for (var i = iCols; i > 8; i--) { //컬럼삭제
- grd_list.deleteColumn(i, false);
- }
-
- var fixedcaption = "챠트번호^입원일^환자명^생년월일^성별^상태^진단명^진료과^";
- var fixedcolWidth = "100,100,100,100,50,50,200,200";
-
- var arrCap = null;
- var arrWidth = null;
- var cols = null;
- var titles = null;
- var caption = null;
- var colWidth = null;
-
- var recflag = model.getValue("/root/send/condition/searchkind");
- var hardcdno ;
-
- // fGetHardcdno() 함수는 SMMQI00101.js에 포함
- model.makeValue("/root/send/condition/hardcdno", fGetHardcdno_title(recflag, getScreenID()));
- submit("TRMQI00103");
-
- caption = model.getValue("/root/main/formbaselist/titlenms");
- colWidth = model.getValue("/root/main/formbaselist/titlewidth");
-
- cols = model.getValue("/root/main/formbaselist/cols");
- titles = model.getValue("/root/main/formbaselist/titles");
-
- grd_list.caption = fixedcaption+caption;
- grd_list.attribute("colwidth") = fixedcolWidth+colWidth;
-
- arrCap = grd_list.caption.split("^");
- arrWidth = grd_list.attribute("colwidth").split(",");
-
- var j = 1;
- var format = "";
-
-
- //기본 컬럼이외 mmrdform의 itemcd에 해당 하는 컬럼(val1~) 추가/ 포맷 적용
- for (var i = 8; i <= arrWidth.length; i++) {
- format = "";
- if (arrCap[i].indexOf("시각") != -1 || arrCap[i].indexOf("일시") != -1) {
- format = ";format:yyyy-mm-dd hh24:nn";
- } else if (/..+일$/g.test(arrCap[i]) || arrCap[i].indexOf("일자") != -1) {
- format = ";format:yyyy-mm-dd";
- }
- //grd_list.addColumn("ref:val"+ (j++) +";type:output"+format, false);
-
- grd_list.addColumn("ref:val"+ j +";type:output"+format, false);
- j = j +1;
-
- if(arrWidth[i] != ""){
- grd_list.colWidth(i) = arrWidth[i];
- }
- }
- grd_list.refresh();
-
- model.makeValue("/root/send/condition/cols", cols);
- model.makeValue("/root/send/condition/titles", titles);
- model.makeValue("/root/send/condition/sflag", model.getValue("/root/sflag"));
- submit("TRMQI00102"); //조회
- model.refresh();
-
- for(var i=1; i <=8; i++){
- grd_list.colStyle( i , "data" , "background-color" ) = "#CCCCCC";
- }
- }
|