コード例 #1
0
        protected void Unnamed_Click(object sender, EventArgs e)
        {
            double totalCost = Convert.ToDouble(txtProjectTotalCost.Text);
            Project newProject = (Project)Application["newProject"];
            newProject.ProjectTotalCost = totalCost;
            newProject.ProjectEndDateTime = newProject.ProjectEndDateTime.AddHours(Convert.ToDouble(txtLabourHours.Text));

            //Changes Project Request Status
            if (newProject.ProjectRequestNumber != 0)
            {
                ProjectRequest pr = new ProjectRequest();
                ProjectRequestBindingList.ProjectRequestList.Clear();

                pr.SearchProjectRequests();
                pr.CancelPrjectRequest(newProject.ProjectRequestNumber);
            }
            Application["newProject"] = newProject;
            Response.Redirect("./AddEmployee");
        }