コード例 #1
0
	public bool AddDepartment(Department department)
	{
		department.MainOfficeTypeID = this.MainOfficeTypeID;
		DepartmentDBAccess departmentDBAccess = new DepartmentDBAccess();
		if (departmentDBAccess.Insert(department)>0)
			return (true);
		return (false);
	}
コード例 #2
0
        public bool AddDepartment(Department department)
        {
            department.AdjutancyTypeID = this.AdjutancyTypeID;
            DepartmentDBAccess departmentDBAccess = new DepartmentDBAccess();

            if (departmentDBAccess.Insert(department) > 0)
            {
                return(true);
            }
            return(false);
        }
コード例 #3
0
 public DepartmentHandler()
 {
     departmentDb = new DepartmentDBAccess();
 }
コード例 #4
0
 public List <OfficialEmployeeReward> GetListOfficialEmployeeReward()
 {
     OfficialEmployeeRewardList = new DepartmentDBAccess().GetListOfficialEmployeeReward(this.DepartmentID);
     return(OfficialEmployeeRewardList);
 }
コード例 #5
0
 public List <Employee> GetListEmployee()
 {
     EmployeeList = new DepartmentDBAccess().GetListEmployee(this.DepartmentID);
     return(EmployeeList);
 }
コード例 #6
0
 public List <DepartmentMonthlyInformation> GetListDepartmentMonthlyInformation()
 {
     DepartmentMonthlyInformationList = new DepartmentDBAccess().GetListDepartmentMonthlyInformation(this.DepartmentID);
     return(DepartmentMonthlyInformationList);
 }