public static string CalculateFormula(Context ctx, BMReportProperty reportProperty, string formulaStr) { string str; ICaculateService service = ServiceFactory.GetService <ICaculateService>(ctx); try { str = service.CalculateFormula(ctx, reportProperty, formulaStr); } finally { ServiceFactory.CloseService(service); } return(str); }
public static SheetDataEntity CalculateSheet(Context ctx, BMReportProperty reportProperty, SheetDataEntity sheetDataEntity) { SheetDataEntity entity; ICaculateService service = ServiceFactory.GetService <ICaculateService>(ctx); try { entity = service.CalculateSheet(ctx, reportProperty, sheetDataEntity); } finally { ServiceFactory.CloseService(service); } return(entity); }
public ReportDataModel(BMReportProperty property) { this._sheetModels = new SheetDataModelCollection(); this.ReportProperty = property; this._sheetModels.CollectionChanged += new NotifyCollectionChangedEventHandler(this.SheetModels_CollectionChanged); }