|
@@ -79,7 +79,10 @@ let calcBaseView = {
|
|
|
let cols = this.setting.header;
|
|
|
let fuc = function () {
|
|
|
sheet.setRowCount(datas.length);
|
|
|
- sheet.setFormatter(-1, 1, '@');
|
|
|
+ //sheet.setFormatter(-1, 1, '@');
|
|
|
+ let style = new GC.Spread.Sheets.Style();
|
|
|
+ style.formatter = MainTreeCol.getNumberFormatter(decimalObj.bills.totalPrice, true);
|
|
|
+ sheet.setStyle(-1, 1, style);
|
|
|
for(let col = 0, cLen = cols.length; col < cLen; col++){
|
|
|
sheet.getRange(-1, col, -1, 1).hAlign(GC.Spread.Sheets.HorizontalAlign[cols[col]['hAlign']]);
|
|
|
sheet.getRange(-1, col, -1, 1).vAlign(GC.Spread.Sheets.VerticalAlign[cols[col]['vAlign']]);
|
|
@@ -212,11 +215,11 @@ let calcBaseView = {
|
|
|
}
|
|
|
CalcBaseCellType.prototype = new ns.CellTypes.Text();
|
|
|
CalcBaseCellType.prototype.paint = function (ctx, value, x, y, w, h, style, options) {
|
|
|
- if(value!=null){
|
|
|
+ // if(value!=null){
|
|
|
// ctx.fillText(value,x+3+ctx.measureText(value).width,y+h-3);
|
|
|
// ctx.fillText(value,x+w-3,y+h-3);
|
|
|
GC.Spread.Sheets.CellTypes.Text.prototype.paint.apply(this, arguments);
|
|
|
- }
|
|
|
+ // }
|
|
|
if(calcBaseView.editingCell){
|
|
|
if(calcBaseView.editingCell.row==options.row&&calcBaseView.editingCell.col==options.col){
|
|
|
var image = document.getElementById('f_btn'),imageMagin = 3;
|