コード例 #1
0
        private void PopulateGeneral(AbstractExpenseItem item)
        {
            var rDate = new DateTime(random.Next(7) + 2000, random.Next(12) + 1, random.Next(28) + 1);

            item.ModifyAmount(RandomAmount);
            //item.modifyDescription(item.[GetType()]().FullName + " " + rDate.ToString())
            item.ModifyDateIncurred(rDate);
            item.ModifyProjectCode(RandomProjectCode);
        }
コード例 #2
0
 public virtual void ModifyProjectCode(ProjectCode newCode)
 {
     ProjectCode = newCode;
     for (int i = 0; i < ExpenseItems.Count; i++)
     {
         AbstractExpenseItem item = (ExpenseItems[i]);
         item.ModifyProjectCode(m_projectCode);
     }
 }
コード例 #3
0
 private void PopulateGeneral(AbstractExpenseItem item) {
     var rDate = new DateTime(random.Next(7) + 2000, random.Next(12) + 1, random.Next(28) + 1);
     item.ModifyAmount(RandomAmount);
     //item.modifyDescription(item.[GetType()]().FullName + " " + rDate.ToString())
     item.ModifyDateIncurred(rDate);
     item.ModifyProjectCode(RandomProjectCode);
 }