protected void OnButtonCloseClicked(object sender, EventArgs e) { var expense = UoW.GetById <Expense>(representationUnclosed.GetSelectedId()); var dlg = new AdvanceReportDlg(expense, PermissionsSettings.PermissionService); OpenNewTab(dlg); }
protected void OnButtonAdvanceReportClicked(object sender, EventArgs e) { var accountable = UoW.GetById<Employee> (representationtreeviewDebts.GetSelectedId ()); var category = accountabledebtsfilter1.RestrictExpenseCategory; decimal money = representationtreeviewDebts.GetSelectedObject<AccountableDebtsVMNode> ().Debt; var dlg = new AdvanceReportDlg (accountable, category, money); OpenNewTab (dlg); }
protected void OnButtonAdvanceReportClicked(object sender, EventArgs e) { var accountable = UoW.GetById <Employee> (representationtreeviewDebts.GetSelectedId()); var category = accountabledebtsfilter1.RestrictExpenseCategory; decimal money = representationtreeviewDebts.GetSelectedObject <AccountableDebtsVMNode> ().Debt; var dlg = new AdvanceReportDlg(accountable, category, money); OpenNewTab(dlg); }