/// <summary> /// Constructor /// </summary> /// <param name="deliverablesAndResults"></param> /// <param name="schedule"></param> /// <param name="capacityResource"></param> /// <param name="scope"></param> /// <param name="clientSatisfication"></param> /// <param name="issuesAndRisks"></param> /// <param name="useOfTestcontrol"></param> /// <param name="employeeSatisfcation"></param> public Delivery(int deliveryID, StatusItem deliverablesAndResults, StatusItem schedule, StatusItem capacityResource, StatusItem scope, StatusItem clientSatisfication, StatusItem issuesAndRisks, StatusItem useOfTestcontrol, StatusItem employeeSatisfcation) { this.DeliveryId = deliveryID; this.DeliverablesAndResults = deliverablesAndResults; this.Schedule = schedule; this.CapacityResource = capacityResource; this.Scope = scope; this.ClientSatisfaction = clientSatisfication; this.IssuesAndRisks = issuesAndRisks; this.UseOfTestControl = useOfTestcontrol; this.EmployeeSatisfaction = employeeSatisfcation; }
public static StatusItem GetStatusItem(int statusItemID) { StatusItem item = null; using (DataSet dsStatusItemDetails = DAL.StatusItem.GetStatusItem(statusItemID)) { if ((dsStatusItemDetails != null) && (dsStatusItemDetails.Tables.Count > 0)) { item = new StatusItem(Convert.ToInt32(dsStatusItemDetails.Tables[0].Rows[0]["StatusItemID"]), (BAL.Status)Convert.ToChar(dsStatusItemDetails.Tables[0].Rows[0]["Status"]), dsStatusItemDetails.Tables[0].Rows[0]["Comment"].ToString()); } } return item; }
public void Add(StatusItem item) { context.StatusItem.Add(item); context.SaveChanges(); }
public BusinessDevelopment(int id, StatusItem knownOpportunity, StatusItem clientContract) { this.KnownOpportunity = knownOpportunity; this.ClientContact = clientContract; }