Example #1
0
 public static bool SaveEmployeeCard(EmployeeCardDetails card)
 {
     int id = FiresecService.SaveEmployeeCard(card);
     if (id != -1)
         card.Id = id;
     return id != -1;
 }
Example #2
0
        public int SaveEmployeeCard(EmployeeCardDetails employeeCard)
        {
            try
            {
                int? id = employeeCard.Id;
                Context.SaveEmployeeCard(
                    ref id,
                    employeeCard.LastName,
                    employeeCard.FirstName,
                    employeeCard.SecondName,
                    employeeCard.ClockNumber,
                    employeeCard.Comment,
                    employeeCard.DepartmentId,
                    employeeCard.Email,
                    employeeCard.GroupId,
                    employeeCard.Phone,
                    employeeCard.PositionId,
                    employeeCard.Address,
                    employeeCard.AddressFact,
                    employeeCard.BirthPlace,
                    employeeCard.Birthday,
                    employeeCard.Cell,
                    employeeCard.ITN,
                    employeeCard.PassportCode,
                    employeeCard.PassportDate,
                    employeeCard.PassportEmitter,
                    employeeCard.PassportNumber,
                    employeeCard.PassportSerial,
                    employeeCard.Photo,
                    employeeCard.SNILS,
                    employeeCard.SexId);

                return id.HasValue ? id.Value : -1;
            }
            catch { return 0; }
        }
Example #3
0
		public int SaveEmployeeCard(EmployeeCardDetails employeeCard)
		{
			return 0;
		}
 public int SaveEmployeeCard(EmployeeCardDetails employeeCard)
 {
     return SafeContext.Execute<int>(() => FiresecService.SaveEmployeeCard(employeeCard));
 }
 public int SaveEmployeeCard(EmployeeCardDetails employeeCard)
 {
     return _skud.SaveEmployeeCard(employeeCard);
 }