Example #1
0
        protected void btnUpload_Click(object sender, EventArgs e)
        {
            if (fuSeekerResume.HasFile)
            {
                byte[] imageBytes = new byte[fuSeekerResume.PostedFile.InputStream.Length + 1];
               // fuSeekerResume.PostedFile.InputStream.Read(imageBytes, 0, imageBytes.Length);
                Seeker objSeeker = new Seeker();
                string filename = Path.GetFileName(fuSeekerResume.PostedFile.FileName);
                string FName = Session["ID"].ToString()+filename;
                fuSeekerResume.SaveAs(Server.MapPath("~/PDF_Files/" + FName));
                objSeeker.Resume = "~/PDF_Files/" + FName;
                objSeeker.SeekerID = Convert.ToInt32(Session["ID"].ToString());
                int i = new RegisterBO().UpdateSeeker(objSeeker);
                if (i == 1)
                {
                    lblErr.Text = "Update Successful";
                }
                else { lblErr.Text = "updation failed"; }

            }
            else
            {
                lblErr.Text = "Please Choose a File";
            }
        }
Example #2
0
        public void getData(string[] Objdata)
        {
            try
            {
                Seeker ObjSeeker = new Seeker();
                ObjSeeker.SeekerName = Objdata[0];
                ObjSeeker.SeekerLName = Objdata[1];
                ObjSeeker.Gender = Objdata[2];
                ObjSeeker.DOB = Convert.ToDateTime(Objdata[3]);
                ObjSeeker.Country =Convert.ToInt32( Objdata[4]);
                ObjSeeker.State =Convert.ToInt32( Objdata[5]);
                ObjSeeker.City = Convert.ToInt32(Objdata[6]);
                ObjSeeker.Industry = Objdata[7];
                ObjSeeker.PrimarySkill =Convert.ToInt32(Objdata[8]);
                ObjSeeker.SkillSet = Objdata[9];
                ObjSeeker.Experience = Convert.ToInt32(Objdata[10]);
                ObjSeeker.TenthPercent = Convert.ToInt32(Objdata[11]);
                ObjSeeker.InterPercent = Convert.ToInt32(Objdata[12]);
                ObjSeeker.GraduationType = Objdata[13];
                ObjSeeker.GraduationPercent = Convert.ToInt32(Objdata[14]);
                ObjSeeker.PGPercent = Convert.ToInt32(Objdata[15]);
                ObjSeeker.Phone = Objdata[16];
                #region Resume
                //byte[] imageBytes = new byte[fuSeekerResume.PostedFile.InputStream.Length + 1];
                //fuSeekerResume.PostedFile.InputStream.Read(imageBytes, 0, imageBytes.Length);
                //Obj.Resume = imageBytes;
                #endregion
                ObjSeeker.EmailID = Objdata[17];
                LoginSeeker objLogSeeker = new LoginSeeker();
                objLogSeeker.EmailID = Objdata[17];
                objLogSeeker.Password = Objdata[18];
                int val = new RegisterBO().AddSeeker(objLogSeeker, ObjSeeker);
                if (val == 1)
                {
                    new CCDDLWebService().SendMail(Objdata[17], "Seeker");
                    Response.Redirect("Login.aspx");
                }
                else
                {
                    //lblRegErr.Text = "Something went wrong";
                }
            }
            catch (Exception)
            {

                throw;
            }
            finally
            {
                Objdata = null;
            }
        }
Example #3
0
        protected void btnEmpPwdOk_Click(object sender, EventArgs e)
        {
            try
            {
                int i = new RegisterBO().UpdatePwd(new Credantials() { ID = Convert.ToInt32(Session["ID"].ToString()), Password = txtChngCurrPwd.Text, NewPassword = txtChngNewPwd.Text });
                if (i==1)
                {
                    ScriptManager.RegisterStartupScript(this, this.GetType(), "AlertSuccess", "funcAlert();", true);
                }
                if (i==2)
                {
                    ScriptManager.RegisterStartupScript(this, this.GetType(), "AlertDanger", "funcAlertDanger();", true);
                }
                else
                {
                    ScriptManager.RegisterStartupScript(this, this.GetType(), "AlertDanger", "funcAlertWrong();", true);
                }
            }
            catch (Exception)
            {

                ScriptManager.RegisterStartupScript(this, this.GetType(), "AlertDanger", "funcAlertWrong();", true);
            }
        }
Example #4
0
        protected void btnSubmit_Click(object sender, EventArgs e)
        {
            try
            {
                    Employer Obj = new Employer();
                    Obj.EmpName = txtName.Text;
                    Obj.EmpLName = txtLName.Text;
                    Obj.Gender = ddlGender.SelectedItem.Text;
                    Obj.Designation = txtDesignation.Text;
                    if (!String.IsNullOrWhiteSpace(txtCompany.Text))
                    {
                        Obj.CompanyName = txtCompany.Text;
                    }
                    else
                    {
                        Obj.CompanyName = String.Empty;
                    }
                    if (!String.IsNullOrWhiteSpace(txtContactTitle.Text))
                    {
                        Obj.ContactTitle = txtContactTitle.Text;
                    }
                    else
                    {
                        Obj.ContactTitle = String.Empty;
                    }
                    if (!String.IsNullOrWhiteSpace(txtAddress.Text))
                    {
                        Obj.Address = txtAddress.Text;
                    }
                    else
                    {
                        Obj.Address = String.Empty;
                    }
                    Obj.Country =Convert.ToInt32(ddlCountry.SelectedItem.Value);
                    Obj.State =Convert.ToInt32(ddlState.SelectedItem.Value);
                    Obj.City = Convert.ToInt32(ddlCity.SelectedItem.Value);
                    Obj.PostalCode = txtPostalCode.Text;
                    Obj.Phone = txtPhNum.Text;
                    Obj.EmailID = txtEmailID.Text;
                    LoginEmployer objLogEmp = new LoginEmployer();
                    objLogEmp.EmailID = txtEmailID.Text;
                    objLogEmp.Password = txtPassword.Text;
                    int val = new RegisterBO().AddEmployer(objLogEmp, Obj);
                    if (val == 1)
                    {
                        //sms sending
                        SMS.APIType = SMSGateway.Site2SMS;
                        string message = "Hello..! you registered in successful" ;
                        SMS.MashapeKey = "7c4xATbTr7mshehqdw53rmcYbfOtp1WdEtbjsnOU2FJvTrjeQs";
                        SMS.Username = "******";
                        SMS.Password = "******";
                       if (txtPhNum.Text != "")
                       {
                           string num = txtPhNum.Text.Trim();
                            SMS.SendSms(num, message);
                       }
                        ////////////

                        new CCDDLWebService().SendMail(txtEmailID.Text, "Employer");
                        Response.Redirect("Login.aspx");
                    }
                    else
                    {
                        lblRegError.Text = "Something went wrong";
                    }

            }
            catch (Exception)
            {
                lblRegError.Text = "Something went wrong";
            }
        }
Example #5
0
        public void getData(string[] Objdata)
        {
            try
            {
                Seeker ObjSeeker = new Seeker();
                ObjSeeker.SeekerName = Objdata[0];
                ObjSeeker.SeekerLName = Objdata[1];
                ObjSeeker.Gender = Objdata[2];
                ObjSeeker.DOB = Convert.ToDateTime(Objdata[3]);
                ObjSeeker.Country =Convert.ToInt32( Objdata[4]);
                ObjSeeker.State = Convert.ToInt32(Objdata[5]);
                ObjSeeker.City = Convert.ToInt32(Objdata[6]);
                ObjSeeker.Industry = Objdata[7];
                ObjSeeker.PrimarySkill =Convert.ToInt32(Objdata[8]);
                ObjSeeker.SkillSet = Objdata[9];
                ObjSeeker.Experience = Convert.ToInt32(Objdata[10]);
                ObjSeeker.TenthPercent = Convert.ToInt32(Objdata[11]);
                ObjSeeker.InterPercent = Convert.ToInt32(Objdata[12]);
                ObjSeeker.GraduationType = Objdata[13];
                ObjSeeker.GraduationPercent = Convert.ToInt32(Objdata[14]);
                ObjSeeker.PGPercent = Convert.ToInt32(Objdata[15]);
                ObjSeeker.Phone = Objdata[16];
                #region Resume
                //byte[] imageBytes = new byte[fuSeekerResume.PostedFile.InputStream.Length + 1];
                //fuSeekerResume.PostedFile.InputStream.Read(imageBytes, 0, imageBytes.Length);
                //Obj.Resume = imageBytes;
                #endregion
                ObjSeeker.EmailID = Objdata[17];
                LoginSeeker objLogSeeker = new LoginSeeker();
                objLogSeeker.EmailID = Objdata[17];
                objLogSeeker.Password = Objdata[18];

                int val = new RegisterBO().AddSeeker(objLogSeeker, ObjSeeker);
                if (val == 1)
                {
                    SMS.APIType = SMSGateway.Site2SMS;
                    string message = "Hello..! you registered in successful";
                    SMS.MashapeKey = "7c4xATbTr7mshehqdw53rmcYbfOtp1WdEtbjsnOU2FJvTrjeQs";
                    SMS.Username = "******";
                    SMS.Password = "******";
                    if (txtPhNum.Text != "")
                    {
                        string num = txtPhNum.Text.Trim();
                        SMS.SendSms(num, message);
                    }
                    ////////////
                    new CCDDLWebService().SendMail(Objdata[17], "Seeker");
                    Response.Redirect("Login.aspx");
                }
                else
                {
                    lblRegErr.Text = "Something went wrong";
                }
            }
            catch (Exception)
            {

                throw;
            }
            finally
            {
                Objdata = null;
            }
        }
Example #6
0
        protected void btnSeekerSubmit_Click(object sender, EventArgs e)
        {
            try
            {
                Seeker ObjSeeker = new Seeker();
                ObjSeeker.SeekerName = txtName.Text;
                ObjSeeker.SeekerLName = txtLName.Text;
                ObjSeeker.Gender =ddlGender.SelectedItem.Text ;
                ObjSeeker.DOB = Convert.ToDateTime(txtDOB.Text);
                ObjSeeker.Country = Convert.ToInt32(ddlCountry.SelectedValue);
                ObjSeeker.State = Convert.ToInt32(ddlState.SelectedValue);
                ObjSeeker.City = Convert.ToInt32(ddlCity.SelectedValue);
                ObjSeeker.Industry = txtIndustry.Text;
                ObjSeeker.PrimarySkill = Convert.ToInt32(ddlSkillSet.SelectedValue);
                ObjSeeker.SkillSet = txtSkillList.Text;
                ObjSeeker.Experience = Convert.ToInt32(txtTotalExperience.Text);
                ObjSeeker.TenthPercent = Convert.ToInt32(txt10thPercent.Text);
                ObjSeeker.InterPercent = Convert.ToInt32(txtInterPercent.Text);
                ObjSeeker.GraduationType = rdoLstSelect.SelectedItem.Text;
                ObjSeeker.GraduationPercent = Convert.ToInt32(txtGradPercent.Text);
                ObjSeeker.PGPercent = Convert.ToInt32(txtPGPercent.Text);
                ObjSeeker.Phone = txtPhNum.Text;
                ObjSeeker.EmailID = txtEmailID.Text;
                //if (fuSeekerResume.HasFile)
                //{
                //    string filename = Path.GetFileName(fuSeekerResume.PostedFile.FileName);
                //    string FName = Session["ID"].ToString() + filename;
                //    fuSeekerResume.SaveAs(Server.MapPath("~/PDF_Files/" + FName));
                //    ObjSeeker.Resume = "~/PDF_Files/" + FName;
                //    ObjSeeker.SeekerID = Convert.ToInt32(Session["ID"].ToString());

                //}
                LoginSeeker objLogSeeker = new LoginSeeker();
                objLogSeeker.EmailID = txtEmailID.Text;
                objLogSeeker.Password = txtPassword.Text;
                int val = new RegisterBO().AddSeeker(objLogSeeker, ObjSeeker);
                if (val == 1)
                {
                    SMS.APIType = SMSGateway.Site2SMS;
                    string message = "Hello..! your registration was successfully done.";
                    SMS.MashapeKey = "7c4xATbTr7mshehqdw53rmcYbfOtp1WdEtbjsnOU2FJvTrjeQs";
                    SMS.Username = "******";
                    SMS.Password = "******";
                    if (txtPhNum.Text != "")
                    {
                        string num = txtPhNum.Text.Trim();
                        SMS.SendSms(num, message);
                    }
                    ////////////
                    new CCDDLWebService().SendMail(txtEmailID.Text, "Seeker");
                    Response.Redirect("Login.aspx");
                }
                else
                {
                    lblRegErr.Text = "Something went wrong";
                }
            }
            catch (Exception)
            {

                throw;
            }
        }
Example #7
0
        protected void rptProfileEdit_ItemCommand(object source, RepeaterCommandEventArgs e)
        {
            if (e.CommandName == "Update")
            {
                RepeaterItem item = rptProfileEdit.Items[0];

                Employer objEmp = new Employer();
                objEmp.EmpID = Convert.ToInt32(Session["ID"].ToString());
                objEmp.EmpName = (item.FindControl("txtName") as TextBox).Text;
                objEmp.EmpLName = (item.FindControl("txtLName") as TextBox).Text;
                objEmp.CompanyName = (item.FindControl("txtCompanyName") as TextBox).Text;
                objEmp.Address = (item.FindControl("txtAddress") as TextBox).Text;
                objEmp.Country = Convert.ToInt32((item.FindControl("ddlCountry") as DropDownList).SelectedValue);
                objEmp.State = Convert.ToInt32((item.FindControl("ddlState") as DropDownList).SelectedValue);
                objEmp.City = Convert.ToInt32((item.FindControl("ddlCity") as DropDownList).SelectedValue);
                objEmp.Designation = (item.FindControl("txtDesignation") as TextBox).Text;
                objEmp.PostalCode = (item.FindControl("txtPostalCode") as TextBox).Text;
                objEmp.Phone = (item.FindControl("txtPhone") as TextBox).Text;
                //objEmp.EmailID = (item.FindControl("txtEmailID") as TextBox).Text;
                int i = new RegisterBO().UpdateEmployer(objEmp);
                if (i == 1)
                {
                    ScriptManager.RegisterStartupScript(this, this.GetType(), "AlertSuccess", "funcAlert();", true);
                    bindProfile();
                }
            }
            if (e.CommandName == "Cancel")
            {
                bindProfile();
            }
        }
Example #8
0
        protected void btnFinish_Click(object sender, EventArgs e)
        {
            try
            {
                RepeaterItem item = rptProfileS.Items[0];
                Seeker objS = new Seeker();
                objS.SeekerID = Convert.ToInt32(Session["ID"].ToString());
                objS.SeekerName = (item.FindControl("txtName") as TextBox).Text;
                objS.SeekerLName = (item.FindControl("txtLName") as TextBox).Text;
                objS.DOB = Convert.ToDateTime((item.FindControl("txtDOB") as TextBox).Text);
                objS.Country = Convert.ToInt32((item.FindControl("ddlCountry") as DropDownList).SelectedValue);
                objS.State = Convert.ToInt32((item.FindControl("ddlState") as DropDownList).SelectedValue);
                objS.City = Convert.ToInt32((item.FindControl("ddlCity") as DropDownList).SelectedValue);
                objS.Industry = (item.FindControl("txtIndustry") as TextBox).Text;
                objS.PrimarySkill = Convert.ToInt32((item.FindControl("ddlSkillSet") as DropDownList).SelectedValue);
                objS.SkillSet = (item.FindControl("txtSkillList") as TextBox).Text;
                objS.Experience = Convert.ToInt32((item.FindControl("txtTotalExperience") as TextBox).Text);
                objS.TenthPercent = Convert.ToInt32((item.FindControl("txt10thPercent") as TextBox).Text);
                objS.InterPercent = Convert.ToInt32((item.FindControl("txtInterPercent") as TextBox).Text);
                objS.GraduationPercent = Convert.ToInt32((item.FindControl("txtGradPercent") as TextBox).Text);
                objS.PGPercent = Convert.ToInt32((item.FindControl("txtPGPercent") as TextBox).Text);
                objS.Phone = (item.FindControl("txtPhone") as TextBox).Text;
                //objEmp.EmailID = (item.FindControl("txtEmailID") as TextBox).Text;
                int i = new RegisterBO().UpdateSeekerDetails(objS);
                if (i == 1)
                {
                    ScriptManager.RegisterStartupScript(this, this.GetType(), "AlertSuccess", "funcAlert();", true);
                    Bind();
                }
            }
            catch (Exception)
            {

                ScriptManager.RegisterStartupScript(this, this.GetType(), "AlertDanger", "funcAlertWrong();", true);
            }
        }