示例#1
0
        protected void btnPostuler_ServerClick(object sender, EventArgs e)
        {
            Recrute rc = new Recrute();

            rc.date = DateTime.Now;
            rc.Candidat_candidatId = id;
            rc.Categorie           = "recrute";
            rc.Emploi_idEmploi     = int.Parse(dlEmplois.SelectedValue);
            rc.etatRec             = "Propostion";
            rc.lettreMtv           = "none";
            db.Recrute.InsertOnSubmit(rc);
            db.SubmitChanges();
        }
示例#2
0
        protected void btnPostuler_ServerClick(object sender, EventArgs e)
        {
            int idEmp  = int.Parse(Session["IdEmp"].ToString());
            int idUser = int.Parse(Session["idUser"].ToString());

            Recrute r = new Recrute();

            r.Candidat_candidatId = idUser;
            r.date            = Convert.ToDateTime(DateTime.Now.ToShortTimeString());
            r.lettreMtv       = txtLettre.Text;
            r.Emploi_idEmploi = idEmp;
            r.Categorie       = "Demande";

            db.Recrutes.InsertOnSubmit(r);

            db.SubmitChanges();

            Response.Redirect("~/Emp/emplois.aspx");
        }
示例#3
0
        protected void repDemande_ItemCommand(object source, RepeaterCommandEventArgs e)
        {
            if (e.CommandName == "accepterDem")
            {
                int     idRec = int.Parse(e.CommandArgument.ToString());
                Recrute rec   = db.Recrute.Single(y => y.RecruteId == idRec);

                if (rec != null)
                {
                    rec.etatRec = "Accepter";

                    db.SubmitChanges();
                    Response.Redirect("~/dash/dahsboard.aspx");
                }
            }
            else
            {
                Response.Write("none");
            }
        }