123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 |
- /*
-
- 약어 조회(SMMNR01600.xfm - JScript )
- - Version :
- 1) : Ver.1.00.01
- */
- var xAbbrListPath = "/root/main/abbr/abbrlist"; // 약어조회 abbrlist Type
- var xCondPath = "/root/main/cond";
- /**
- * @group :
- * @ver : 2007.03.21
- * @by : 신혁춘
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 화면 초기화
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fInit(){
- model.makeValue("/root/hidden/uid/children/wid","SPMNR02700");
- model.setValue(xCondPath+"/codeflog","%");
- fSearch("abbrlisttype");
- }
- /**
- * @group :
- * @ver : 2007.03.21
- * @by : 신혁춘
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 간호약어 조회 (
- * @param : pFlag ( abbrlisttype : 약어조회 abbr Type 조회)
- * @return :
- * @---------------------------------------------------
- */
- function fSearch(pFlag){
- if(pFlag == "abbrlisttype" || pFlag=="%"){ //앞에 pFlag는 화면처음오픈시 오는 값이고 뒤에 pFlag값은 전체선택후 검색시 오는 값을 체크
- model.removenodeset(xAbbrListPath);
- model.removenode("/root/send");
- model.makeValue("/root/send/flag","smnttype");
- ipt_termnm.value="";
- ipt_termnm.refresh();
- if(submit("TRMNR01601")){
- var RowCnt = grd_care.rows - grd_care.fixedRows;
- if(RowCnt > 0){
- grd_care.row = 1;
- }
- }
- }else if (pFlag=="1" || pFlag=="2"){ //앞에 pFlag는 한글선택후 검색시 오는 값이고 뒤에 pFlag값은 영문선택후 검색시 오는 값을 체크
- model.removenode("/root/send");
- model.makeValue("/root/send/termnm",model.getValue(xCondPath+"/termnm"));
- model.makeValue("/root/send/codeflog",model.getValue(xCondPath+"/codeflog"));
- termnm = model.getValue(xCondPath+"/termnm");
- codeflog = model.getValue(xCondPath+"/codeflog");
- if(submit("TRMNR01604")){
- var RowCnt = grd_care.rows - grd_care.fixedRows;
- if(RowCnt > 0){
- grd_care.row = 1;
- }
- }
- }
- }
- /**
- * @group :
- * @ver : 2007.03.22
- * @by : 신혁춘
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 그리드 클릭시..
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fClicedGrid(){
- var idx = 0;
- var iRow = -1;
- var localcd = "";
-
- if(idx == 0){
- iRow = grd_care.row;
- if(iRow < 1) return;
- model.removenode("/root/send");
- model.makeValue("/root/send/supcd",model.getValue(xAbbrListPath+"["+iRow+"]/supcd"));
- model.makeValue("/root/send/todd",model.getValue(xAbbrListPath+"["+iRow+"]/todd"));
- model.makeValue("/root/send/reprlocalcd",model.getValue(xAbbrListPath+"["+iRow+"]/reprlocalcd"));
- supcd = model.getValue(xAbbrListPath+"["+iRow+"]/supcd");
- todd = model.getValue(xAbbrListPath+"["+iRow+"]/todd");
- reprlocalcd = model.getValue(xAbbrListPath+"["+iRow+"]/reprlocalcd");
-
- }
- if (supcd=="********"){
- if(submit("TRMNR01603")){
- model.setValue("/root/main/abbr/abbrlist",supcd);
- model.setValue("/root/main/abbr/abbrlist",todd);
- model.setValue("/root/main/abbr/abbrlist",reprlocalcd);
- opt_cnptid1.value="";
- opt_cnptid1.refresh();
- }
- }else{
- if(submit("TRMNR01602")){
- model.setValue("/root/main/abbr/abbrlist",supcd);
- model.setValue("/root/main/abbr/abbrlist",todd);
- model.setValue("/root/main/abbr/abbrlist",reprlocalcd);
- var re = "/root/main/abbrdetl/abbrdetllist";
- }
- }
- }
|