コード例 #1
0
ファイル: Budget.cs プロジェクト: iampanya/BudgetControl
 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;
 }
コード例 #2
0
        // 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;
        }
コード例 #3
0
ファイル: Account.cs プロジェクト: iampanya/BudgetControl
 public Account(BudgetFileModel budgetfile)
 {
     this.AccountID   = budgetfile.AccountID;
     this.AccountName = budgetfile.AccountName;
     this.Status      = RecordStatus.Active;
 }