public void Add(EmpBasicInfoDTO DTO)
 {
     using (var container = new InventoryContainer())
     {
         Employee gur = new Employee();
         container.Employees.AddObject((Employee)DTOMapper.DTOObjectConverter(DTO, gur));
         container.SaveChanges();
     }
 }
 public void Edit_Status_flag_training(EmpBasicInfoDTO DTO)
 {
     using (var container = new InventoryContainer())
     {
         var Comp = new Employee();
         Comp = container.Employees.FirstOrDefault(o => o.EmpId.Equals(DTO.EmpId));
         Comp.TariningStatus = DTO.TariningStatus;
         Comp = (Employee)DTOMapper.DTOObjectConverter(DTO, Comp);
         container.SaveChanges();
     }
 }
 // Edit password
 public void Edit_Password(EmpBasicInfoDTO DTO)
 {
     using (var container = new InventoryContainer())
     {
         var Comp = new Employee();
         Comp          = container.Employees.FirstOrDefault(o => o.EmpId.Equals(DTO.EmpId));
         Comp.EmpId    = DTO.EmpId;
         Comp.Password = DTO.Password;
         Comp          = (Employee)DTOMapper.DTOObjectConverter(DTO, Comp);
         container.SaveChanges();
     }
 }
 public void Edit(EmpBasicInfoDTO DTO)
 {
     using (var container = new InventoryContainer())
     {
         var Comp = new Employee();
         Comp                  = container.Employees.FirstOrDefault(o => o.EmpId.Equals(DTO.EmpId));
         Comp.EmpId            = DTO.EmpId;
         Comp.BrProId          = DTO.BrProId;
         Comp.EmpTypeId        = DTO.EmpTypeId;
         Comp.EmpSpecilistId   = DTO.EmpSpecilistId;
         Comp.UpdateBy         = DTO.UpdateBy;
         Comp.UpdateDate       = DTO.UpdateDate;
         Comp.DOB              = DTO.DOB;
         Comp.Email            = DTO.Email;
         Comp.FatherName       = DTO.FatherName;
         Comp.ImageName        = DTO.ImageName;
         Comp.JobType          = DTO.JobType;
         Comp.JoinDate         = DTO.JoinDate;
         Comp.JobStatus        = DTO.JobStatus;
         Comp.Merital          = DTO.Merital;
         Comp.Mobile1          = DTO.Mobile1;
         Comp.Mobile2          = DTO.Mobile2;
         Comp.MotherName       = DTO.MotherName;
         Comp.Nationality      = DTO.Nationality;
         Comp.Phone            = DTO.Phone;
         Comp.PermanentAdd     = DTO.PermanentAdd;
         Comp.Address          = DTO.Address;
         Comp.Religion         = DTO.Religion;
         Comp.Gender           = DTO.Gender;
         Comp.MotherName       = DTO.MotherName;
         Comp.OtizmStatus      = DTO.OtizmStatus;
         Comp.OtizmType        = DTO.OtizmType;
         Comp.ReferenceBy      = DTO.ReferenceBy;
         Comp.RefContactNum    = DTO.RefContactNum;
         Comp.SurName          = DTO.SurName;
         Comp.Age              = DTO.Age;
         Comp.EduStatus        = DTO.EduStatus;
         Comp.EmpName          = DTO.EmpName;
         Comp.FamilyContactNum = DTO.FamilyContactNum;
         Comp.NationalID       = DTO.NationalID;
         Comp.UserName         = DTO.UserName;
         Comp.Password         = DTO.Password;
         Comp                  = (Employee)DTOMapper.DTOObjectConverter(DTO, Comp);
         container.SaveChanges();
     }
 }
Example #5
0
 public void Edit_Status_flag_Experience(EmpBasicInfoDTO DTO)
 {
     EDAL.Edit_Status_flag_Experience(DTO);
 }
Example #6
0
 public void Edit_Status_flag_training(EmpBasicInfoDTO DTO)
 {
     EDAL.Edit_Status_flag_training(DTO);
 }
Example #7
0
        // end emp id and status

        public void Edit_Status_flag_discount(EmpBasicInfoDTO DTO)
        {
            EDAL.Edit_Status_flag_discount(DTO);
        }
Example #8
0
 // Edit password
 public void Edit_Password(EmpBasicInfoDTO DTO)
 {
     EDAL.Edit_Password(DTO);
 }
Example #9
0
 public void Edit(EmpBasicInfoDTO DTO)
 {
     EDAL.Edit(DTO);
 }
Example #10
0
 public void Add(EmpBasicInfoDTO DTO)
 {
     EDAL.Add(DTO);
 }