|
@@ -281,6 +281,7 @@ $(document).ready(function() {
|
|
|
const refreshNode = tree.loadPostData(result);
|
|
|
self.refreshTree(sheet, refreshNode);
|
|
|
sheet.setSelection(refreshNode.create[0].index, sel.col, sel.rowCount, sel.colCount);
|
|
|
+ SpreadJsObj.reloadRowsBackColor(sheet, [sel.row, refreshNode.create[0].index]);
|
|
|
self.refreshOperationValid(sheet);
|
|
|
});
|
|
|
},
|
|
@@ -328,6 +329,7 @@ $(document).ready(function() {
|
|
|
self.refreshTree(sheet, refreshNode);
|
|
|
const sel = sheet.getSelections()[0];
|
|
|
sheet.setSelection(tree.nodes.indexOf(node), sel.col, sel.rowCount, sel.colCount);
|
|
|
+ SpreadJsObj.reloadRowsBackColor(sheet, [sel.row, refreshNode.create[0].index]);
|
|
|
self.refreshOperationValid(sheet);
|
|
|
});
|
|
|
}
|
|
@@ -352,6 +354,7 @@ $(document).ready(function() {
|
|
|
self.refreshTree(sheet, refreshNode);
|
|
|
const sel = sheet.getSelections()[0];
|
|
|
sheet.setSelection(tree.nodes.indexOf(node), sel.col, sel.rowCount, sel.colCount);
|
|
|
+ SpreadJsObj.reloadRowsBackColor(sheet, [sel.row, refreshNode.create[0].index]);
|
|
|
self.refreshOperationValid(sheet);
|
|
|
});
|
|
|
}
|
|
@@ -734,6 +737,7 @@ $(document).ready(function() {
|
|
|
const result = tree.loadPostData(data.ledger);
|
|
|
self.refreshTree(sheet, result);
|
|
|
sheet.setSelection(result.create[0].index, sel.col, sel.rowCount, sel.colCount);
|
|
|
+ SpreadJsObj.reloadRowsBackColor(sheet, [sel.row, refreshNode.create[0].index]);
|
|
|
self.refreshOperationValid(sheet);
|
|
|
removeLocalCache(copyBlockTag);
|
|
|
}, null, true);
|
|
@@ -1281,8 +1285,10 @@ $(document).ready(function() {
|
|
|
if (refreshNode.create[0]) {
|
|
|
if (sel && sel[0]) {
|
|
|
ledgerSheet.setSelection(refreshNode.create[0].index, sel[0].col, sel[0].rowCount, sel[0].colCount);
|
|
|
+ SpreadJsObj.reloadRowsBackColor(sheet, [sel.row, refreshNode.create[0].index]);
|
|
|
} else {
|
|
|
ledgerSheet.setSelection(refreshNode.create[0].index, 0, 1, 1);
|
|
|
+ SpreadJsObj.reloadRowsBackColor(sheet, [refreshNode.create[0].index]);
|
|
|
}
|
|
|
}
|
|
|
treeOperationObj.refreshOperationValid(ledgerSheet);
|
|
@@ -1780,10 +1786,12 @@ $(document).ready(function() {
|
|
|
treeOperationObj.refreshTree(mainSheet, refreshNode);
|
|
|
if (refreshNode.create && refreshNode.create.length > 0) {
|
|
|
mainSheet.setSelection(refreshNode.create[refreshNode.create.length - 1].index, sel.col, sel.rowCount, sel.colCount);
|
|
|
+ SpreadJsObj.reloadRowsBackColor(sheet, [sel.row, refreshNode.create[refreshNode.create.length - 1].index]);
|
|
|
} else {
|
|
|
const node = _.find(ledgerTree.nodes, {code: stdNode.code, name: stdNode.name});
|
|
|
if (node) {
|
|
|
mainSheet.setSelection(ledgerTree.nodes.indexOf(node), sel.col, sel.rowCount, sel.colCount);
|
|
|
+ SpreadJsObj.reloadRowsBackColor(sheet, [sel.row, ledgerTree.nodes.indexOf(node)]);
|
|
|
}
|
|
|
}
|
|
|
treeOperationObj.refreshOperationValid(mainSheet);
|
|
@@ -2001,6 +2009,7 @@ $(document).ready(function() {
|
|
|
treeOperationObj.refreshTree(mainSheet, refreshData);
|
|
|
const sel = mainSheet.getSelections()[0];
|
|
|
mainSheet.setSelection(refreshData.create[0].index, sel.col, sel.rowCount, sel.colCount);
|
|
|
+ SpreadJsObj.reloadRowsBackColor(sheet, [sel.row, refreshNode.create[0].index]);
|
|
|
treeOperationObj.refreshOperationValid(mainSheet);
|
|
|
ledgerSpread.focus();
|
|
|
posOperationObj.loadCurPosData();
|
|
@@ -2210,6 +2219,7 @@ $(document).ready(function() {
|
|
|
const result = ledgerTree.loadPostData(data.ledger);
|
|
|
treeOperationObj.refreshTree(sheet, result);
|
|
|
sheet.setSelection(result.create[0].index, sel.col, sel.rowCount, sel.colCount);
|
|
|
+ SpreadJsObj.reloadRowsBackColor(sheet, [sel.row, refreshNode.create[0].index]);
|
|
|
treeOperationObj.refreshOperationValid(sheet);
|
|
|
self.obj.modal('hide');
|
|
|
}, null, true);
|