예제 #1
0
        public ActionResult AddNewClient()
        {
            BAL.Client client = new Client(0, Request.Form["ClientName"], Request.Form["ClientAddress"], Request.Form["ClientContactNumber"]);
            client.InsertClient();

            return RedirectToAction("Dashboard", "Home");
        }
예제 #2
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>();
 }
예제 #3
0
파일: Client.cs 프로젝트: sogetiIreland/PAP
        public static List<Client> GetAllClients()
        {
            List<Client> clientList = new List<Client>();
            Client client;

            using (DataSet dsClients = DAL.Client.GetAllClients())
            {
                if ((dsClients != null) && (dsClients.Tables.Count > 0))
                {
                    foreach (DataRow row in dsClients.Tables[0].Rows)
                    {
                        client = new Client(Convert.ToInt32(row["ClientID"]), row["ClientName"].ToString(),
                            row["ClientAddress"].ToString(), row["ClientContactNumber"].ToString());

                        clientList.Add(client);
                    }
                }
            }

            return clientList;
        }
예제 #4
0
파일: Client.cs 프로젝트: sogetiIreland/PAP
        public static Client GetClient(int clientID)
        {
            Client client = null;

            using (DataSet dsClientDetails = DAL.Client.GetClientDetails(clientID))
            {
                if ((dsClientDetails != null) && (dsClientDetails.Tables.Count > 0))
                {
                    client = new Client(Convert.ToInt32(dsClientDetails.Tables[0].Rows[0]["ClientID"]),
                        dsClientDetails.Tables[0].Rows[0]["ClientName"].ToString(), dsClientDetails.Tables[0].Rows[0]["ClientAddress"].ToString(),
                        dsClientDetails.Tables[0].Rows[0]["ClientContactNumber"].ToString());
                }
            }

            return client;
        }