|
using System;
using System.Collections.Generic;
using System.Text;
namespace BTSPracCourse.Maps.Scripts
{
public class GreenShiledScripts
{
/// <summary>
/// Get the New Price based on the Manuf code
/// </summary>
/// <param name="manfCode"></param>
/// <param name="provPrice"></param>
/// <param name="manfPrice"></param>
/// <param name="wholePrice"></param>
/// <returns></returns>
public string GetNewPrice(string manfCode, string provPrice, string manfPrice, string wholePrice)
{
float markup = 1.0f;
float baseprice = 1.0f;
try
{
markup = 1.0f + GetManMarkup(manfCode);
baseprice = float.Parse(provPrice.Trim());
if (baseprice == 0.0f)
{
baseprice = float.Parse(manfPrice.Trim());
if (baseprice == 0.0f)
{
baseprice = float.Parse(wholePrice.Trim());
}
}
}
catch (Exception ex)
{
System.Diagnostics.Debug.WriteLine(ex.Message);
}
float result = baseprice * markup;
return result.ToString("0000.0000");
}
private float GetManMarkup(string manfCode)
{
float result = 0.2f;
return result;
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
As a well-established IT leader with a passion for architecture, design, coding, refactoring, and development, I possess 20+ years’ success spearheading large teams to deliver the end-to-end development of 30+ innovative software solutions on time and under budget on a US and international level.
Throughout my career, I have made it my priority to utilize current technologies and new techniques to develop elegant, creative technical solutions across all project phases. Comfortable in collaborative and independently-driven roles, I am a forward-thinking leader with refined analytical and critical thinking skills, and I can adapt and revise my strategies to meet evolving priorities, shifting needs, and emergent issues. As a dynamic leader with experience as Technical Lead and Senior Manager, as well as on the Board of Directors, I have led numerous teams to create a new employees experience with Workday, roadmap for people systems (JDA WFMR, Kronos, Infor, Workday, and monitoring with Splunk), and architecture for 20+ projects at Loblaw. Furthermore, I have spearheaded As a well-established IT leader with a passion for architecture, design, coding, refactoring, and development, I possess 20+ years’ success spearheading large teams to deliver the end-to-end development of 30+ innovative software solutions on time and under budget on a US and international level.
Throughout my career, I have made it my priority to utilize current technologies and new techniques to develop elegant, creative technical solutions across all project phases. Comfortable in collaborative and independently-driven roles, I am a forward-thinking leader with refined analytical and critical thinking skills, and I can adapt and revise my strategies to meet evolving priorities, shifting needs, and emergent issues. As a dynamic leader with experience as Technical Lead and Senior Manager, as well as on the Board of Directors, I have led numerous teams to create a new employees experience with Workday