Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 public ReportDataModel(BMReportProperty property)
 {
     this._sheetModels   = new SheetDataModelCollection();
     this.ReportProperty = property;
     this._sheetModels.CollectionChanged += new NotifyCollectionChangedEventHandler(this.SheetModels_CollectionChanged);
 }