Beispiel #1
0
        public int Save(ILeavePeriod leavePeriod)
        {
            exp_Data = new DataAccess.LeavePeriod(Connection);
            var orgLeavePeriod = (OrganizationLeavePeriod)leavePeriod;

            leavePeriod.LeavePeriodID = exp_Data.Save(orgLeavePeriod.ClientID,
                                                      orgLeavePeriod.StartDate,
                                                      orgLeavePeriod.EndDate,
                                                      orgLeavePeriod.IsCurrentPeriod,
                                                      orgLeavePeriod.IsNextPeriod,
                                                      orgLeavePeriod.PreviousLeave,
                                                      orgLeavePeriod.Year
                                                      );
            if (leavePeriod.LeavePeriodID > 0)
            {
                return(leavePeriod.LeavePeriodID);
            }
            else
            {
                return(-1);
            }
        }
Beispiel #2
0
 public bool Update(ILeavePeriod leavePeriod)
 {
     exp_Data = new DataAccess.LeavePeriod(Connection);
     throw new NotImplementedException();
 }
Beispiel #3
0
 public void Load(int clientID, int leaveperiodID)
 {
     exp_Data = new DataAccess.LeavePeriod(Connection);
 }