Beispiel #1
0
        public static CBE.Employee GetEmployeeDetailsByID(Int32 ID)
        {
            CBE.Employee employee = new CBE.Employee();
            DataTable    ldt      = new DataTable();

            ldt = DAL.Employee.GetEmployeeDetailsByID(ID);
            if (ldt.Rows.Count > 0)
            {
                employee.ID             = ID;
                employee.Title          = Convert.ToString(ldt.Rows[0]["Title"]);
                employee.FirstName      = Convert.ToString(ldt.Rows[0]["FirstName"]);
                employee.LastName       = Convert.ToString(ldt.Rows[0]["LastName"]);
                employee.Phone          = Convert.ToString(ldt.Rows[0]["Phone"]);
                employee.Fax            = Convert.ToString(ldt.Rows[0]["Fax"]);
                employee.Email          = Common.Encrypter.Decrypt(Convert.ToString(ldt.Rows[0]["Email"]), true);
                employee.StreetAddress1 = Convert.ToString(ldt.Rows[0]["StreetAddress1"]);
                employee.StreetAddress2 = Convert.ToString(ldt.Rows[0]["StreetAddress2"]);
                employee.CountryID      = Convert.ToInt32(ldt.Rows[0]["CountryID"]);
                employee.State          = Convert.ToString(ldt.Rows[0]["State"]);
                employee.City           = Convert.ToString(ldt.Rows[0]["City"]);
                employee.Zipcode        = Convert.ToString(ldt.Rows[0]["Zipcode"]);
                employee.UserImage      = Convert.ToString(ldt.Rows[0]["UserImage"]);
                employee.IsActive       = Convert.ToBoolean(ldt.Rows[0]["IsActive"]);
                employee.Dob            = Convert.ToDateTime(ldt.Rows[0]["DOB"]);
                employee.CompanyID      = Convert.ToInt32(ldt.Rows[0]["CompanyID"]);
            }
            return(employee);
        }
Beispiel #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="employee"></param>
 public static void AssignEmployeeToTopicByCompany(CBE.Employee employee)
 {
     DAL.Employee.AssignEmployeeToTopicByCompany(employee);
 }
Beispiel #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="employee"></param>
 public static void UpdateEmployee(CBE.Employee employee)
 {
     DAL.Employee.UpdateEmployee(employee);
 }
Beispiel #4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="employee"></param>
 public static void AddEmployee(CBE.Employee employee)
 {
     DAL.Employee.AddEmployee(employee);
 }
Beispiel #5
0
 /// <summary>
 /// Update AssignEmployee To Topic By TopicID
 /// </summary>
 /// <param name="employee"></param>
 public static void UpdateAssignEmployeeToTopicByTopicID(CBE.Employee employee)
 {
     DAL.Employee.UpdateAssignEmployeeToTopicByTopicID(employee);
 }