예제 #1
0
        public bool AddDepartmentMonthlyInformation(DepartmentMonthlyInformation departmentMonthlyInformation)
        {
            departmentMonthlyInformation.MonthTypeID = this.MonthTypeID;
            DepartmentMonthlyInformationDBAccess departmentMonthlyInformationDBAccess = new DepartmentMonthlyInformationDBAccess();

            if (departmentMonthlyInformationDBAccess.Insert(departmentMonthlyInformation) > 0)
            {
                return(true);
            }
            return(false);
        }
	// This fuction does not contain any business logic, it simply returns the 
	// list of departmentMonthlyInformations, we can put some logic here if needed 
	public List<DepartmentMonthlyInformation> SearchLike(DepartmentMonthlyInformation departmentMonthlyInformation)
	{
		return departmentMonthlyInformationDb.SearchLike(departmentMonthlyInformation);
	}
	public bool Exists(DepartmentMonthlyInformation departmentMonthlyInformation)
	{
		return departmentMonthlyInformationDb.Exists(departmentMonthlyInformation);
	}
	// This fuction does not contain any business logic, it simply returns the 
	// list of departmentMonthlyInformations, we can put some logic here if needed 
	public Int64 Insert(DepartmentMonthlyInformation departmentMonthlyInformation)
	{
		return departmentMonthlyInformationDb.Insert(departmentMonthlyInformation);
	}
	// This fuction does not contain any business logic, it simply returns the 
	// list of departmentMonthlyInformations, we can put some logic here if needed 
	public bool Update(DepartmentMonthlyInformation departmentMonthlyInformation)
	{
		return departmentMonthlyInformationDb.Update(departmentMonthlyInformation);
	}