Exemple #1
0
        public ActionResult AddNewPerson()
        {
            BAL.Person person = new Person(0, Request.Form["FirstName"], Request.Form["LastName"]);
            person.InsertPerson();

            return RedirectToAction("Dashboard", "Home");
        }
Exemple #2
0
        public static Person GetPerson(int personID)
        {
            Person person = null;
            using (DataSet dsPersonDetails = DAL.Person.GetPersonDetails(personID))
            {
                if ((dsPersonDetails != null) && (dsPersonDetails.Tables.Count > 0))
                {
                    person = new Person(personID,
                        dsPersonDetails.Tables[0].Rows[0]["FirstName"].ToString(),
                        dsPersonDetails.Tables[0].Rows[0]["LastName"].ToString());
                }
            }

            return person;
        }
Exemple #3
0
        public static List<Person> GetAllPersons()
        {
            List<Person> personList = new List<Person>();
            Person person;
            using (DataSet dsPersonDetails = DAL.Person.GetallPersons())
            {
                if ((dsPersonDetails != null) && (dsPersonDetails.Tables.Count > 0))
                {
                    foreach (DataRow row in dsPersonDetails.Tables[0].Rows)
                    {
                        person = new Person(Convert.ToInt32(row["PersonID"]),
                            row["FirstName"].ToString(), row["LastName"].ToString());
                        personList.Add(person);
                    }
                }
            }

            return personList;
        }
Exemple #4
0
 public Project(int projectID, string name, string description, Person sogetiPractitioner, Person accountManager,
     Person deliveryManager, Person administrator, Client client, DateTime startDate, DateTime endDate, DateTime revisedDate, Person projectLead, CommercialTerms commercialTerms, Frequency reviewFrequency, SogetiDepartments sogetiDept)
 {
     this.ProjectID = projectID;
     this.Name = name;
     this.Description = description;
     this.SogetiPractitioner = sogetiPractitioner;
     this.AccountManager = accountManager;
     this.DeliveryManager = deliveryManager;
     this.Administrator = administrator;
     this.ProjectLead = projectLead;
     this.ReviewFrequency = reviewFrequency;
     this.CommercialTermsAndConditions = commercialTerms;
     this.Client = client;
     this.StartDate = startDate;
     this.EndDate = endDate;
     this.RevisedDate = revisedDate;
     this.SogetiDepartment = sogetiDept;
     this.ProjectStatusList = new List<ProjectStatus>();
 }