protected void Page_Load(object sender, EventArgs e) { var mpage = new DlMainpagepopulator(); if (Request.QueryString["JobID"] != null) { int tempjobid = Convert.ToInt16(Request.QueryString["JobID"]); string[] Plc = mpage.Getdetailspage(tempjobid); Label11.Text = "Job Description"; Label32.Text = Plc[0]; Label26.Text = Plc[1]; Label18.Text = Plc[2]; Label30.Text = Plc[5]; Label31.Text = Plc[6]; Label21.Text = Plc[4]; var culinf = new CultureInfo("pt-BR"); Label23.Text = Convert.ToDateTime(Plc[3]).ToString("d", culinf); //get locations Label19.Text = mpage.Getdetailspagecats(tempjobid, 1000); //get salary Label20.Text = mpage.Getdetailspagecats(tempjobid, 1005, 0); //get contract type Label22.Text = mpage.Getdetailspagecats(tempjobid, 1002); //hours Labelhrs.Text = mpage.Getdetailspagecats(tempjobid, 1003); //industry Labelindustry.Text = mpage.Getdetailspagecats(tempjobid, 1001); //employer Labeletype.Text = mpage.Getdetailspagecats(tempjobid, 1004); //get rec logo string recid = Plc[7]; Image7.ImageUrl = mpage.Getcurrrec(recid); //get contact person name if any var contactpname = string.Empty; var rcl2 = new DlRecruiter(); if (Request.QueryString["JobID"] != null) { contactpname = rcl2.Contactperson(Request.QueryString["JobID"]); if (contactpname != "") { Label27.Text = contactpname; } } //update job views for recruiter graph var cljb = new DlJobviewdata(); cljb.Addview(Convert.ToInt16(recid), DateTime.Now.ToString("yyyy:MM:dd hh:mm:ss")); } }
protected void Page_Load(object sender, EventArgs e) { //read and validate login if (Session["cuserval"] != null) { if (Session["cuserval"].ToString() == Readjobcookie()) { } else { Response.Redirect("login.aspx"); } } else { Response.Redirect("login.aspx"); } //////////////////////////////////// //set zoom levels for all charts int xzoom = Convert.ToInt32(zoomer.SelectedItem.Value); Chart1.Width = xzoom; jobapps.Width = xzoom; jobpostedview.Width = xzoom; //get recruiter id var clmpop = new DlMainpagepopulator(); int rectempid = clmpop.RecName(Session["pusername"].ToString()); //get jobviews var cljview = new DlJobviewdata(); Chart1.DataSource = cljview.GetJobviewdata(rectempid); Chart1.Series["Series1"].YValueMembers = "jobviews"; Chart1.Series["Series1"].XValueMember = "dateviewed"; Chart1.Series["Series1"].MarkerStyle = MarkerStyle.Circle; Chart1.Series["Series1"].MarkerSize = 3; Chart1.Series["Series1"].MarkerColor = Color.Black; Chart1.Series["Series1"].ChartType = SeriesChartType.Line; Chart1.DataBind(); //get applications made jobapps.DataSource = cljview.Getappviewdata(rectempid); jobapps.Series["Series1"].YValueMembers = "jobviews"; jobapps.Series["Series1"].XValueMember = "dateviewed"; jobapps.Series["Series1"].MarkerStyle = MarkerStyle.Circle; jobapps.Series["Series1"].MarkerSize = 3; jobapps.Series["Series1"].MarkerColor = Color.Black; jobapps.Series["Series1"].ChartType = SeriesChartType.Line; jobapps.DataBind(); //get posted jobs jobpostedview.DataSource = cljview.Getpjjobviewdata(rectempid); jobpostedview.Series["Series1"].YValueMembers = "jobviews"; jobpostedview.Series["Series1"].XValueMember = "dateviewed"; jobpostedview.Series["Series1"].MarkerStyle = MarkerStyle.Circle; jobpostedview.Series["Series1"].MarkerSize = 3; jobpostedview.Series["Series1"].MarkerColor = Color.Black; jobpostedview.Series["Series1"].ChartType = SeriesChartType.Line; jobpostedview.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { //read and validate login if (Session["cuserval"] != null) { if (Session["cuserval"].ToString() == Readjobcookie()) { } else { Response.Redirect("login.aspx"); } } else { Response.Redirect("login.aspx"); } //////////////////////////////////// //set zoom levels for all charts int xzoom = Convert.ToInt32(zoomer.SelectedItem.Value); Chart1.Width = xzoom; jobapps.Width = xzoom; jobpostedview.Width = xzoom; //get recruiter id var clmpop = new DlMainpagepopulator(); int rectempid = clmpop.RecName(Session["pusername"].ToString()); //get jobviews var cljview = new DlJobviewdata(); Chart1.DataSource = cljview.GetJobviewdata(rectempid); Chart1.Series["Series1"].YValueMembers = "jobviews"; Chart1.Series["Series1"].XValueMember = "dateviewed"; Chart1.Series["Series1"].MarkerStyle = MarkerStyle.Circle; Chart1.Series["Series1"].MarkerSize = 3; Chart1.Series["Series1"].MarkerColor = Color.Black; Chart1.Series["Series1"].ChartType = SeriesChartType.Line; Chart1.DataBind(); //get applications made jobapps.DataSource = cljview.Getappviewdata(rectempid); jobapps.Series["Series1"].YValueMembers = "jobviews"; jobapps.Series["Series1"].XValueMember = "dateviewed"; jobapps.Series["Series1"].MarkerStyle = MarkerStyle.Circle; jobapps.Series["Series1"].MarkerSize = 3; jobapps.Series["Series1"].MarkerColor = Color.Black; jobapps.Series["Series1"].ChartType = SeriesChartType.Line; jobapps.DataBind(); //get posted jobs jobpostedview.DataSource = cljview.Getpjjobviewdata(rectempid); jobpostedview.Series["Series1"].YValueMembers = "jobviews"; jobpostedview.Series["Series1"].XValueMember = "dateviewed"; jobpostedview.Series["Series1"].MarkerStyle = MarkerStyle.Circle; jobpostedview.Series["Series1"].MarkerSize = 3; jobpostedview.Series["Series1"].MarkerColor = Color.Black; jobpostedview.Series["Series1"].ChartType = SeriesChartType.Line; jobpostedview.DataBind(); }