protected void btnsubmit_Click(object sender, EventArgs e)
        {
            ProfessionalDetailsEntity professionaldetailentity = new ProfessionalDetailsEntity();
            ProfessionalDetailBAL professionaldetailBAL = new ProfessionalDetailBAL();

            professionaldetailentity.RecruiterID = "12";
            professionaldetailentity.TotalExprience = txttotalexprience.Text.Trim();
            professionaldetailentity.Designation = txtdesignation.Text.Trim();
            professionaldetailentity.Freelancer = txtfreelancer.Text.Trim();
            professionaldetailentity.EmploymentStaus = rbtemploymentstatus.SelectedItem.Text.Trim();
            professionaldetailentity.jobtype = rbtjobtype.SelectedItem.Text.Trim();

            int result = professionaldetailBAL.InsertDetails(professionaldetailentity);
            {

                if (result > 0)
                {
                    Response.Write("<script language='javascript'>alert('Recored Inserted ')</script>");
                }
                else
                {
                    Response.Write("<script language='javascript'>alert('Sorry')</script>");
                }

            }
        }
예제 #2
0
 protected void btnAdd_Click(object sender, EventArgs e)
 {
     ProfessionalDetailBAL professionalDetailBAL = new ProfessionalDetailBAL();
     ProfessionalDetailsEntity professionalDetailentity = new ProfessionalDetailsEntity();
     professionalDetailentity.TechnicalSkill = txtAddSkill.Text.Trim();
     professionalDetailBAL.AddTechnicalSkillBAL(professionalDetailentity);
     divAddMoreSkills.Visible = false;
 }
예제 #3
0
 public void AddTechnicalSkillDAL(ProfessionalDetailsEntity professionalDetailentity)
 {
     try
     {
         Connection.Open();
         SqlParameter[] sparams = { new SqlParameter("@SkillName",  professionalDetailentity.TechnicalSkill) };
         SqlHelper.ExecuteNonQuery(Connection, CommandType.StoredProcedure, Constants.sp_RE_InsertTechnicalSkill, sparams);
     }
     catch (Exception)
     {
         throw;
     }
 }
예제 #4
0
        public void DeleteRoleSkillDAL(int RoleskillId)
        {
            try
            {
                ProfessionalDetailsEntity professionalDetailentity = new ProfessionalDetailsEntity();
                Connection.Open();

                SqlParameter[] sparams = { new SqlParameter("@id", RoleskillId) };

                SqlHelper.ExecuteNonQuery(Connection, CommandType.StoredProcedure, Constants.sp_RE_DeleteRoleSkills, sparams);
            }
            catch (Exception)
            {
                // throw;
            }
            finally
            {
                Connection.Close();
            }
        }
예제 #5
0
        public DataSet ViewTechnicalskillBAL(string RecruiterID)
        {
            DataSet ds = new DataSet();
            try
            {
                ProfessionalDetailsEntity professionaldetailentity = new ProfessionalDetailsEntity();
                Connection.Open();

                SqlParameter[] sparams = { new SqlParameter("@recruiterId",  RecruiterID) };

                ds = SqlHelper.ExecuteDataset(Connection, CommandType.StoredProcedure, Constants.sp_JS_SelectTechnicalSkills, sparams);
            }
            catch (Exception)
            {
                // throw;
            }
            finally
            {
                Connection.Close();
            }
            return ds;
        }
예제 #6
0
        public DataSet ViewRoleSkillDetailsDAL(long RecruiterId)
        {
            DataSet ds = new DataSet();
            try
            {
                ProfessionalDetailsEntity professionalDetailEntity = new ProfessionalDetailsEntity();
                Connection.Open();

                SqlParameter[] sparams = { new SqlParameter("@recruiterID", RecruiterId) };

                ds = SqlHelper.ExecuteDataset(Connection, CommandType.StoredProcedure, Constants.sp_RE_SelectRoleskills, sparams);
            }
            catch (Exception)
            {
                // throw;
            }
            finally
            {
                Connection.Close();
            }
            return ds;
        }
예제 #7
0
 public void UpdateRoleSkillsDAL(ProfessionalDetailsEntity professionalDetailsentity)
 {
     try
     {
         Connection.Open();
         SqlParameter[] sparams = new SqlParameter[6];
         sparams[0] = new SqlParameter("@roleskillId", professionalDetailsentity.RoleskillId);
         sparams[1] = new SqlParameter("@roleSkills", professionalDetailsentity.RoleSkills);
         sparams[2] = new SqlParameter("@fromDate", professionalDetailsentity.FromDate);
         sparams[3] = new SqlParameter("@tillDate", professionalDetailsentity.TillDate);
         sparams[4] = new SqlParameter("@proficiency", professionalDetailsentity.Proficiency);
         sparams[5] = new SqlParameter("@totalYear", professionalDetailsentity.TotalExprience);
         SqlHelper.ExecuteNonQuery(Connection, CommandType.StoredProcedure, Constants.sp_RE_UpdateRoleSkill, sparams);
     }
     catch (Exception)
     {
         // throw;
     }
     finally
     {
         Connection.Close();
     }
 }
예제 #8
0
        public int InsertDetails(ProfessionalDetailsEntity professionaldetailentity)
        {
            try
            {
                Connection.Open();
                SqlParameter[] sqlparams = {
                                            new SqlParameter ("@RecruiterID",professionaldetailentity.RecruiterID),
                                            new SqlParameter("@TotalExprience",professionaldetailentity.TotalExprience),
                                            new SqlParameter ("@Designation",professionaldetailentity.Designation),
                                            new SqlParameter("@Freelancer",professionaldetailentity.Freelancer),
                                            new SqlParameter("@EmploymentStaus",professionaldetailentity.EmploymentStaus),
                                            new SqlParameter("@jobtype",professionaldetailentity.jobtype)
                                            };
                return SqlHelper.ExecuteNonQuery(Connection, CommandType.StoredProcedure, Constants.sp_RE_InsertProfessionalDetails, sqlparams);

            }
            catch (Exception)
            {

                throw;
            }
        }
예제 #9
0
 public void UpdateRoleSkillsBAL(ProfessionalDetailsEntity professionalDetailsentity)
 {
     ProfessionalDetailsDAL professionalDetailDAL = new ProfessionalDetailsDAL();
     professionalDetailDAL.UpdateRoleSkillsDAL(professionalDetailsentity);
 }
예제 #10
0
 public int InsertDetails(ProfessionalDetailsEntity professionaldetailentity)
 {
     ProfessionalDetailsDAL professionaldetailDAL = new ProfessionalDetailsDAL();
     return professionaldetailDAL.InsertDetails(professionaldetailentity);
 }
예제 #11
0
 public void AddTechnicalSkillBAL(ProfessionalDetailsEntity professionalDetailentity)
 {
     ProfessionalDetailsDAL professionalDetailDAL = new ProfessionalDetailsDAL();
      professionalDetailDAL.AddTechnicalSkillDAL(professionalDetailentity);
 }
예제 #12
0
 public void AddRoleSkills(ProfessionalDetailsEntity professionalDetailentity)
 {
     ProfessionalDetailsDAL professionalDetailDAL = new ProfessionalDetailsDAL();
        professionalDetailDAL.AddRoleSkills(professionalDetailentity);
 }