|
|
@ -22612,7 +22612,11 @@ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
jfgrid.getdatabyselection = function (range, sheetIndex) { |
|
|
jfgrid.getdatabyselection = function (range, sheetIndex) { |
|
|
if (range == null || range["row"] == null || range["row"].length == 0) { |
|
|
if(range == null){ |
|
|
|
|
|
range = jfgird_select_save[0]; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (range["row"] == null || range["row"].length == 0) { |
|
|
return []; |
|
|
return []; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -23425,11 +23429,16 @@ |
|
|
return copySheetName; |
|
|
return copySheetName; |
|
|
}, |
|
|
}, |
|
|
getSheetByIndex:function(index){ |
|
|
getSheetByIndex:function(index){ |
|
|
|
|
|
try { |
|
|
if(index == null){ |
|
|
if(index == null){ |
|
|
index = jfgrid.currentSheetIndex; |
|
|
index = jfgrid.sheetmanage.getSheetIndex(jfgrid.currentSheetIndex); |
|
|
} |
|
|
} |
|
|
var i = this.getSheetIndex(index); |
|
|
var i = this.getSheetIndex(index); |
|
|
return jfgridfile[i]; |
|
|
return jfgridfile[i]; |
|
|
|
|
|
} |
|
|
|
|
|
catch(err) { |
|
|
|
|
|
console.log(err); |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
getCurSheetnoset: function () { |
|
|
getCurSheetnoset: function () { |
|
|
var curindex = 0; |
|
|
var curindex = 0; |
|
|
@ -47778,6 +47787,7 @@ |
|
|
|
|
|
|
|
|
//得到单元格的值
|
|
|
//得到单元格的值
|
|
|
jfgrid.getcellvalue = function (r, c, data, type) { |
|
|
jfgrid.getcellvalue = function (r, c, data, type) { |
|
|
|
|
|
try { |
|
|
if (type == null) { |
|
|
if (type == null) { |
|
|
type = "v"; |
|
|
type = "v"; |
|
|
} |
|
|
} |
|
|
@ -47795,7 +47805,12 @@ |
|
|
d_value = data[r]; |
|
|
d_value = data[r]; |
|
|
} |
|
|
} |
|
|
else if (c != null) { |
|
|
else if (c != null) { |
|
|
d_value = data[c]; |
|
|
var newData = data[0].map(function(col, i) { |
|
|
|
|
|
return data.map(function(row) { |
|
|
|
|
|
return row[i]; |
|
|
|
|
|
}) |
|
|
|
|
|
}); |
|
|
|
|
|
d_value = newData[c]; |
|
|
} |
|
|
} |
|
|
else { |
|
|
else { |
|
|
return data; |
|
|
return data; |
|
|
@ -47822,6 +47837,10 @@ |
|
|
|
|
|
|
|
|
return retv; |
|
|
return retv; |
|
|
} |
|
|
} |
|
|
|
|
|
catch(err) { |
|
|
|
|
|
console.log(err); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
//new runze 根据亿万格式autoFormatw和精确度accuracy 转换成 w/w0/w0.00 or 0/0.0格式
|
|
|
//new runze 根据亿万格式autoFormatw和精确度accuracy 转换成 w/w0/w0.00 or 0/0.0格式
|
|
|
jfgrid.setAccuracy = function(autoFormatw, accuracy){ |
|
|
jfgrid.setAccuracy = function(autoFormatw, accuracy){ |
|
|
|