public int updateEmployeeDetails(IEmployeeDetailsBO obj)
        {
            int ret = 0;
            IEmployeeDetailsDAL objempdetailsdal = ERecruitmentDALFactory.EmployeeDetailsDALFactory.createEmployeeDetailsDAL();

            return(ret);
        }
예제 #2
0
        public int createEmployeeDetails(IEmployeeDetailsBO objemp)
        {
            int           ret  = 0;
            SqlConnection conn = new SqlConnection();

            conn.ConnectionString = DataUtility.getConnection();
            try
            {
                conn.Open();
                SqlCommand command = new SqlCommand();
                command.CommandType = CommandType.StoredProcedure;
                command.CommandText = "sp_insert_empData1";
                command.Connection  = conn;
                command.Parameters.AddWithValue("@EmployeeID", 0);
                command.Parameters.AddWithValue("@EmployeeName", objemp.Employee_Name);
                command.Parameters.AddWithValue("@DOB", objemp.DOB);
                command.Parameters.AddWithValue("@division", objemp.Division);
                command.Parameters.AddWithValue("@gender", objemp.Gender);
                command.Parameters.AddWithValue("@DOJ", objemp.DOJ);
                command.Parameters.AddWithValue("@CTC", objemp.CTC);
                command.Parameters.AddWithValue("@Designation", objemp.Designation);
                command.Parameters.AddWithValue("@UnitHeadID", objemp.Unit_Head_Id);
                command.Parameters.AddWithValue("@projectID", objemp.Project_Id);
                command.Parameters.AddWithValue("@isHR", 0);
                command.Parameters.AddWithValue("@isNew", 0);
                command.Parameters["@EmployeeID"].Direction = ParameterDirection.Output;
                command.ExecuteNonQuery();
                //return Convert.ToInt32(command.Parameters["@EmployeeID"]);
                conn.Close();
                return(ret);
            }
            catch
            {
                throw;
            }
        }
        protected void Button1_Click(object sender, EventArgs e)
        {
            IEmployeeDetailsBO objemp = ERecruitmentFactoryBO.Employee_DetailsBOFactory.createEmployeeDetailsBO();

            try
            {
                objemp.Employee_Name = txtempname.Text;
                objemp.DOB           = DateTime.Parse(txtdob.Text);
                objemp.DOJ           = DateTime.Parse(txtdatej.Text);
                objemp.Gender        = rblgender.SelectedValue;
                objemp.Division      = txtlocation.Text;
                objemp.Designation   = ddldesign.Text;
                objemp.CTC           = int.Parse(txtctc.Text);
                objemp.Unit_Head_Id  = int.Parse(ddlunitheadid.SelectedValue);
                objemp.Project_Id    = int.Parse(ddlprojectid.SelectedValue);
                IEmployeeDetailsBLL empdetobjBLL = ERecruitmentFactoryBLL.EmployeeDetailsBLLFactory.createEmployeeDetailsBLL();
                int ret = empdetobjBLL.createEmployeeDetails(objemp);
            }
            catch
            {
                //string msg = ErrorHandler.getErrorMsg("addBGCAdministrator", ex);
                //Label12.Text = msg;
            }
        }
예제 #4
0
        public int updateEmployeeDetails(IEmployeeDetailsBO obj)
        {
            int ret = 0;

            return(ret);
        }