}//column AD Tech private double GetMonitCostPerDay(SelectedTechnology p_technology)//column AB TECH { double Cost_Per_Day = 0; Technology technology = new Technology(); var Deal_Manager = DealManagement.GetInstance(); foreach (var tech in Deal_Manager.List_Technologies) { if (p_technology.Description.Equals(tech.Description)) { technology = tech; } } if (technology.Unit_Of_Measure.Equals("Unit")) { Cost_Per_Day = (Deal_Manager.Selected_Country.L1 / 12 / 30 / 24 / 60) * GetMonitoringEffortPerTech(technology); } else { if (technology.Unit_Of_Measure.Equals("Terabyte")) // column AF tech { Cost_Per_Day = GetMonitoringCostPerTB(technology); } } return(Cost_Per_Day); }
private double GetOperAndAdminCostPerDay(SelectedTechnology p_technology) // column AC Tech { double Cost_Per_Day = 0; double Oper_And_Admin_Effort = 0; Technology technology = new Technology(); var Deal_Manager = DealManagement.GetInstance(); foreach (var tech in Deal_Manager.List_Technologies) { if (p_technology.Description.Equals(tech.Description)) { technology = tech; } } Oper_And_Admin_Effort = GetIncidentEffortPerTech(technology) + GetServicesEffortPerTech(technology); if (technology.Unit_Of_Measure.Equals("Unit")) { Cost_Per_Day = (Deal_Manager.Selected_Country.L2 / 12 / 30 / 24 / 60) * Oper_And_Admin_Effort; } else { if (technology.Unit_Of_Measure.Equals("Terabyte")) { Cost_Per_Day = GetMonitoringCostPerTB(technology); } } return(Cost_Per_Day); }
private void FillListOfSelectedTechnologies() { var _Deal_Manager = DealManagement.GetInstance(); _Deal_Manager.ListOfSelectedTechnologies.Clear(); foreach (DataGridViewRow row in GridTecnologies.Rows) { try { if (Convert.ToInt32(row.Cells[1].Value) > 0) { var selectedTech = new SelectedTechnology(); selectedTech.Description = row.Cells[0].Value.ToString(); selectedTech.Quantity = Convert.ToInt32(row.Cells[1].Value.ToString()); selectedTech.HasMonitoring = Convert.ToBoolean(row.Cells[2].Value); selectedTech.HasOperAndAdmin = Convert.ToBoolean(row.Cells[3].Value); _Deal_Manager.ListOfSelectedTechnologies.Add(selectedTech); } } catch (FormatException ex) { MessageBox.Show("Please select a valid amount for units"); } } }
public double GetOperAndAdminCostPerYearPerUnit(SelectedTechnology p_technology) { return(GetOperAndAdminCostPerDay(p_technology) * 12 * 30); }
public double GetTotalOperAndAdminCostPerYear(SelectedTechnology p_technology) { return(GetOperAndAdminCostPerYearPerUnit(p_technology) * p_technology.Quantity); }
public double GetMonitCostPerYearPerUnit(SelectedTechnology p_technology) { return(GetMonitCostPerDay(p_technology) * 12 * 30); }//column AD Tech
public double GetTotalMonitCostPerYear(SelectedTechnology p_technology) { return(GetMonitCostPerYearPerUnit(p_technology) * p_technology.Quantity); }
public double GetGeneralCostPerYearPerUnit(SelectedTechnology p_technology) { return(GetMonitCostPerYearPerUnit(p_technology) + GetOperAndAdminCostPerYearPerUnit(p_technology)); }
public double GetGeneralCostPerYear(SelectedTechnology p_technology) { return(GetTotalMonitCostPerYear(p_technology) + GetTotalOperAndAdminCostPerYear(p_technology)); }