Example #1
0
 public void LoadCreatedByApplicationUser(BudgetLine obj)
 {
     if (obj.CreatedByApplicationUser != null)
     {
         _createdByApplicationUserProperty = obj.CreatedByApplicationUser.CurrentDTO;
     }
 }
Example #2
0
 public void LoadBudgetLineCategory(BudgetLine obj)
 {
     if (obj.BudgetLineCategory != null)
     {
         _budgetLineCategoryProperty = obj.BudgetLineCategory.CurrentDTO;
     }
 }
Example #3
0
 public void LoadBudget(BudgetLine obj)
 {
     if (obj.Budget != null)
     {
         _budgetProperty = obj.Budget.CurrentDTO;
     }
 }
Example #4
0
        public static BudgetLine GetBudgetLine(Func <IDataReader, BudgetLine> rowParser, SqlDataReader reader)
        {
            BudgetLine obj = rowParser(reader);

            obj.InitDTO();
            obj.IsDirty = false;
            obj.IsNew   = false;
            return(obj);
        }
Example #5
0
 public BudgetLine CopyDTO(BudgetLine obj)
 {
     obj.BudgetID        = this.BudgetID;
     obj.LineID          = this.LineID;
     obj.OrderNo         = this.OrderNo;
     obj.CategoryID      = this.CategoryID;
     obj.FortnightAmount = this.FortnightAmount;
     obj.RequiresReceipt = this.RequiresReceipt;
     obj.IsActive        = this.IsActive;
     return(obj);
 }
Example #6
0
        /// <summary>
        /// Creates a new object of type <see cref="BudgetLine"/>.
        /// </summary>
        /// <returns>Returns a newly instantiated collection of type <see cref="BudgetLine"/>.</returns>
        public static BudgetLine NewBudgetLine()
        {
            BudgetLine obj = new BudgetLine();

            return(obj);
        }
Example #7
0
 protected void UpdateChildren(BudgetLine parent, SqlConnection connection, SqlTransaction trans)
 {
 }