コード例 #1
0
        public bool AddContractualEmployeeReward(ContractualEmployeeReward contractualEmployeeReward)
        {
            contractualEmployeeReward.NationalCode = this.NationalCode;
            ContractualEmployeeRewardDBAccess contractualEmployeeRewardDBAccess = new ContractualEmployeeRewardDBAccess();

            if (contractualEmployeeRewardDBAccess.Insert(contractualEmployeeReward) > 0)
            {
                return(true);
            }
            return(false);
        }
コード例 #2
0
        public bool AddContractualEmployeeReward(ContractualEmployeeReward contractualEmployeeReward)
        {
            contractualEmployeeReward.MonthTypeID = this.MonthTypeID;
            ContractualEmployeeRewardDBAccess contractualEmployeeRewardDBAccess = new ContractualEmployeeRewardDBAccess();

            if (contractualEmployeeRewardDBAccess.Insert(contractualEmployeeReward) > 0)
            {
                return(true);
            }
            return(false);
        }
コード例 #3
0
 // This fuction does not contain any business logic, it simply returns the
 // list of contractualEmployeeRewards, we can put some logic here if needed
 public List <ContractualEmployeeReward> SearchLike(ContractualEmployeeReward contractualEmployeeReward)
 {
     return(contractualEmployeeRewardDb.SearchLike(contractualEmployeeReward));
 }
コード例 #4
0
 public bool Exists(ContractualEmployeeReward contractualEmployeeReward)
 {
     return(contractualEmployeeRewardDb.Exists(contractualEmployeeReward));
 }
コード例 #5
0
 // This fuction does not contain any business logic, it simply returns the
 // list of contractualEmployeeRewards, we can put some logic here if needed
 public Int64 Insert(ContractualEmployeeReward contractualEmployeeReward)
 {
     return(contractualEmployeeRewardDb.Insert(contractualEmployeeReward));
 }
コード例 #6
0
 // This fuction does not contain any business logic, it simply returns the
 // list of contractualEmployeeRewards, we can put some logic here if needed
 public bool Update(ContractualEmployeeReward contractualEmployeeReward)
 {
     return(contractualEmployeeRewardDb.Update(contractualEmployeeReward));
 }