Beispiel #1
0
        public int AddempDetails(BusinessObject.Employee objboemp, BusinessObject.Department objbodept,
                                 BusinessObject.Designation objbodeg, BusinessObject.Technology objbotech, BusinessObject.Country objbocountry, BusinessObject.state objbostate, BusinessObject.City objbocity, BusinessObject.Location objboloc, BusinessObject.DevolopementCenture objbodevcen)
        {
            con.Open();
            string     query = "insert into empregester values('" + objboemp.empno + "','" + objboemp.empname + "','" + objboemp.gender + "','" + objboemp.salary + "','" + objbodept.Deptid + "','" + objbodeg.degid + "','" + objbotech.techid + "','" + objbocountry.CountryId + "','" + objbostate.stateid + "','" + objbocity.cityid + "','" + objboloc.LocationId + "','" + objbodevcen.Devcid + "') ";
            SqlCommand cmd   = new SqlCommand(query, con);
            int        i     = cmd.ExecuteNonQuery();

            return(i);
        }
Beispiel #2
0
        public int AddempDetails(BusinessObject.Employee objboemp, BusinessObject.Department objbodept, BusinessObject.Designation objbodeg, BusinessObject.Technology objbotech, BusinessObject.Country objbocountry, BusinessObject.state objbostate, BusinessObject.City objbocity, BusinessObject.Location objboloc, BusinessObject.DevolopementCenture objbodevcen)
        {
            int i = objdalemp.AddempDetails(objboemp, objbodept, objbodeg, objbotech, objbocountry, objbostate, objbocity, objboloc, objbodevcen);

            return(i);
        }
Beispiel #3
0
 /// <summary>
 /// Creates the employee.
 /// </summary>
 /// <param name="employee">
 /// The employee.
 /// </param>
 /// <returns>
 /// The create employee.
 /// </returns>
 public bool CreateEmployee(Employee employee)
 {
     this.employeeRepository.Add(employee);
     this.employeeRepository.Save();
     return(true);
 }
Beispiel #4
0
 /// <summary>
 /// Dels the employee.
 /// </summary>
 /// <param name="employee">
 /// The employee.
 /// </param>
 /// <returns>
 /// The del employee.
 /// </returns>
 public bool DelEmployee(Employee employee)
 {
     this.employeeRepository.Delete(employee);
     this.employeeRepository.Save();
     return(true);
 }