Example #1
0
        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");
            }

            if (Session["pusername"] != null)
            {
                //get employer id
                var mpg  = new DlMainpagepopulator();
                int emid = mpg.RecName(Session["pusername"].ToString());

                var app = new DlApps();

                //bind to grid
                GridView1.DataSource = app.GetApplication(emid);
                GridView1.DataBind();
            }
        }
Example #2
0
        public void adddata(string __fname)
        {
            //get candidate first name, last name etc from db.
            var cclid = new DlCandidates();

            string[] temphldoldcan = cclid.Getcandidatesindb(Session["pusername"].ToString());

            if (temphldoldcan.Length > 0)
            {
                //add max count
                var cc       = new ClCodeconverter();
                int __pcount = cc.Getmaxfile(pathsetter);

                //upload to server
                FileUpload1.SaveAs(Server.MapPath(pathsetter) + __pcount + __fname);

                var app = new DlApps();

                //apps add
                int mxdocid = app.Getmaxdocid();
                int mxappid = app.Getmaxappid();

                var    cinf     = new CultureInfo("en-GB");
                string dobdate1 = temphldoldcan[3];

                //fill in app. automatically
                app.AddApplicationcan(Convert.ToInt32(temphldoldcan[4]), temphldoldcan[0], temphldoldcan[1], dobdate1,
                                      TextBox2.Text, mxdocid, Session["pusername"].ToString());
                app.AddApplicationMapping(Convert.ToInt16(Request.QueryString["JobID"]), mxappid);
                app.Adddocuments(__pcount + __fname, pathsetter + __pcount + __fname);
            }
        }
        public void adddata(string __fname)
        {
            //get candidate first name, last name etc from db.
            var cclid = new DlCandidates();
            string[] temphldoldcan = cclid.Getcandidatesindb(Session["pusername"].ToString());

            if (temphldoldcan.Length > 0)
            {
                //add max count
                var cc = new ClCodeconverter();
                int __pcount = cc.Getmaxfile(pathsetter);

                //upload to server
                FileUpload1.SaveAs(Server.MapPath(pathsetter) + __pcount + __fname);

                var app = new DlApps();

                //apps add
                int mxdocid = app.Getmaxdocid();
                int mxappid = app.Getmaxappid();

                var cinf = new CultureInfo("en-GB");
                string dobdate1 = temphldoldcan[3];

                //fill in app. automatically
                app.AddApplicationcan(Convert.ToInt32(temphldoldcan[4]), temphldoldcan[0], temphldoldcan[1], dobdate1,
                                      TextBox2.Text, mxdocid, Session["pusername"].ToString());
                app.AddApplicationMapping(Convert.ToInt16(Request.QueryString["JobID"]), mxappid);
                app.Adddocuments(__pcount + __fname, pathsetter + __pcount + __fname);
            }
        }
        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");
            }

            if (Request.QueryString["Applyid"] != null)
            {
                var      claps = new DlApps();
                string[] showd = claps.Getapplicationdetails(Convert.ToInt16(Request.QueryString["Applyid"]));
                Label2.Text            = showd[0];
                HyperLink1.NavigateUrl = Server.MapPath(showd[1]);
            }
        }
        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");
            }

            if (Session["pusername"] != null)
            {
                //get employer id
                var mpg = new DlMainpagepopulator();
                int emid = mpg.RecName(Session["pusername"].ToString());

                var app = new DlApps();

                //bind to grid
                GridView1.DataSource = app.GetApplication(emid);
                GridView1.DataBind();
            }
        }
Example #6
0
        private void Adddata(string __filename)
        {
            //set culture to british
            //modify here in future if this needs to be set to us formats
            //edited by adam

            var      cinf     = new CultureInfo("en-GB");
            DateTime dobsdate = Convert.ToDateTime(TextBox5.Text, cinf);

            string dobdate1 = dobsdate.ToString("MM/dd/yyyy");

            //add max count
            var cc       = new ClCodeconverter();
            int __pcount = cc.Getmaxfile(Server.MapPath(pathsetter));

            FileUpload1.SaveAs(Server.MapPath(pathsetter) + __pcount + __filename);

            var app = new DlApps();

            //apps add
            int mxdocid = app.Getmaxdocid();
            int mxappid = app.Getmaxappid();

            app.AddApplication(TextBox3.Text, TextBox4.Text, dobdate1, TextBox2.Text, mxdocid, TextBox6.Text);
            app.AddApplicationMapping(Convert.ToInt16(Request.QueryString["JobID"]), mxappid);
            app.Adddocuments(__pcount + __filename, pathsetter + __pcount + __filename);
        }
        protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
        {
            //get employer id
            var mpg = new DlMainpagepopulator();
            int emid = mpg.RecName(Session["pusername"].ToString());

            var apps = new DlApps();
            GridView1.DataSource = apps.GetApplication(emid);
            GridView1.PageIndex = e.NewPageIndex;
            GridView1.DataBind();
        }
Example #8
0
        protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
        {
            //get employer id
            var mpg  = new DlMainpagepopulator();
            int emid = mpg.RecName(Session["pusername"].ToString());

            var apps = new DlApps();

            GridView1.DataSource = apps.GetApplication(emid);
            GridView1.PageIndex  = e.NewPageIndex;
            GridView1.DataBind();
        }
        private void Adddata(string __filename)
        {
            //set culture to british
            //modify here in future if this needs to be set to us formats
            //edited by adam

            var cinf = new CultureInfo("en-GB");
            DateTime dobsdate = Convert.ToDateTime(TextBox5.Text, cinf);

            string dobdate1 = dobsdate.ToString("MM/dd/yyyy");

            //add max count
            var cc = new ClCodeconverter();
            int __pcount = cc.Getmaxfile(Server.MapPath(pathsetter));
            FileUpload1.SaveAs(Server.MapPath(pathsetter) + __pcount + __filename);

            var app = new DlApps();

            //apps add
            int mxdocid = app.Getmaxdocid();
            int mxappid = app.Getmaxappid();

            app.AddApplication(TextBox3.Text, TextBox4.Text, dobdate1, TextBox2.Text, mxdocid, TextBox6.Text);
            app.AddApplicationMapping(Convert.ToInt16(Request.QueryString["JobID"]), mxappid);
            app.Adddocuments(__pcount + __filename, pathsetter + __pcount + __filename);
        }