public Budget(BudgetFileModel budgetfile) { this.BudgetID = Guid.NewGuid(); this.AccountID = budgetfile.AccountID; this.CostCenterID = budgetfile.CostCenterID; this.BudgetAmount = budgetfile.Amount; //this.RemainAmount = budgetfile.Amount; this.WithdrawAmount = 0; this.Year = budgetfile.Year; this.Status = BudgetStatus.Active; }
// Define Budget public BudgetTransaction(BudgetFileModel budgetfile, Budget budget) { this.BudgetTransactionID = Guid.NewGuid(); this.Description = "นำเข้าจาก SAP"; this.Amount = budgetfile.Amount; this.Type = TransactionType.Definition; //Budget this.BudgetID = budget.BudgetID; this.Budget = budget; }
public Account(BudgetFileModel budgetfile) { this.AccountID = budgetfile.AccountID; this.AccountName = budgetfile.AccountName; this.Status = RecordStatus.Active; }