|
@@ -192,6 +192,22 @@ var billsLibObj = {
|
|
|
ProjectController.addBills(projectObj.project, projectObj.mainController, selectNode.data);
|
|
|
}
|
|
|
}
|
|
|
+ else{
|
|
|
+ let me = billsLibObj;
|
|
|
+ let node = stdBillsTree.items[args.row];
|
|
|
+ if (!node || node.children.length === 0)
|
|
|
+ return;
|
|
|
+ node.setExpanded(!node.expanded);
|
|
|
+ TREE_SHEET_HELPER.massOperationSheet(args.sheet, function () {
|
|
|
+ let iCount = node.posterityCount(), i, child;
|
|
|
+ for (i = 0; i < iCount; i++) {
|
|
|
+ child = stdBillsTree.items[args.row + i + 1];
|
|
|
+ args.sheet.setRowVisible(args.row + i + 1, child.visible, args.sheetArea);
|
|
|
+ }
|
|
|
+ args.sheet.invalidateLayout();
|
|
|
+ });
|
|
|
+ args.sheet.repaint();
|
|
|
+ }
|
|
|
});
|
|
|
}, function () {
|
|
|
that.stdBillsSpread.unbind(GC.Spread.Sheets.Events.CellDoubleClick);
|