Пример #1
0
	public bool AddBaseMonthlyInformation(BaseMonthlyInformation baseMonthlyInformation)
	{
		baseMonthlyInformation.MainOfficeTypeID = this.MainOfficeTypeID;
		BaseMonthlyInformationDBAccess baseMonthlyInformationDBAccess = new BaseMonthlyInformationDBAccess();
		if (baseMonthlyInformationDBAccess.Insert(baseMonthlyInformation)>0)
			return (true);
		return (false);
	}
Пример #2
0
        public bool AddBaseMonthlyInformation(BaseMonthlyInformation baseMonthlyInformation)
        {
            baseMonthlyInformation.YearTypeID = this.YearTypeID;
            BaseMonthlyInformationDBAccess baseMonthlyInformationDBAccess = new BaseMonthlyInformationDBAccess();

            if (baseMonthlyInformationDBAccess.Insert(baseMonthlyInformation) > 0)
            {
                return(true);
            }
            return(false);
        }
Пример #3
0
 // This fuction does not contain any business logic, it simply returns the
 // list of baseMonthlyInformations, we can put some logic here if needed
 public List <BaseMonthlyInformation> SearchLike(BaseMonthlyInformation baseMonthlyInformation)
 {
     return(baseMonthlyInformationDb.SearchLike(baseMonthlyInformation));
 }
Пример #4
0
 public bool Exists(BaseMonthlyInformation baseMonthlyInformation)
 {
     return(baseMonthlyInformationDb.Exists(baseMonthlyInformation));
 }
Пример #5
0
 // This fuction does not contain any business logic, it simply returns the
 // list of baseMonthlyInformations, we can put some logic here if needed
 public Int64 Insert(BaseMonthlyInformation baseMonthlyInformation)
 {
     return(baseMonthlyInformationDb.Insert(baseMonthlyInformation));
 }
Пример #6
0
 // This fuction does not contain any business logic, it simply returns the
 // list of baseMonthlyInformations, we can put some logic here if needed
 public bool Update(BaseMonthlyInformation baseMonthlyInformation)
 {
     return(baseMonthlyInformationDb.Update(baseMonthlyInformation));
 }