private void ObjectSpace_Committing(object sender, System.ComponentModel.CancelEventArgs e) { var objSpace = (XPObjectSpace)View.ObjectSpace; var generator = new AccountBalanceGenerator(objSpace); var config = (CashReportConfig)View.CurrentObject; var acctbalparam = AccountBalanceParam.GetInstance(objSpace); acctbalparam.FromDate = config.StartDate.AddDays(-1); acctbalparam.ToDate = acctbalparam.FromDate; generator.Generate(acctbalparam); }
private void CalcAction_Execute(object sender, SimpleActionExecuteEventArgs e) { ObjectSpace.CommitChanges(); var objSpace = (XPObjectSpace)ObjectSpace; var paramObj = (AccountBalanceParam)View.CurrentObject; var generator = new AccountBalanceGenerator(objSpace); generator.Generate(paramObj); new GenericMessageBox( "ACTION COMPLETED : CALCULATE", "ACTION COMPLETED"); }