Convert a c# pricing calculation to typescript/javascript.

已取消

When you are accepted, will send you the whole c#, but posted below is the calculation that I want converted.

Included in this project is a simple html webpage with 2 text boxes, one that has the JSON input in it (where it can be edited) and a button to show the results in second text box.

public static PricingResponse CalculatePricing(PricingRequest request)

{

PricingResponse r = new PricingResponse();

int productionServerCount = 1;

int nonProductionServerCount = 0;

if ([url removed, login to view] != null)

{

[url removed, login to view] = new PricingReturn();

[url removed, login to view](new PricingDetail() { Description = "User Pricing", LicenseCost = [url removed, login to view] * USER_SUBSCRIPTION});

[url removed, login to view](new PricingDetail() { Description = "Designer User Pricing", LicenseCost = [url removed, login to view] * DESIGNER_USER_SUBSCRIPTION });

if ([url removed, login to view]!= 0)

[url removed, login to view](new PricingDetail() { Description = "API Endpoint/Scheduled Job", LicenseCost = [url removed, login to view] * API_INTERFACE__JOB });

if ([url removed, login to view] != 0)

[url removed, login to view](new PricingDetail() { Description = "Non Production Servers", LicenseCost = [url removed, login to view] * NON_PRODUCTION_SERVER });

if ([url removed, login to view] != 0)

[url removed, login to view](new PricingDetail() { Description = "Guest/Shared User", LicenseCost = [url removed, login to view] * GUEST_USER});

nonProductionServerCount = [url removed, login to view];

}

if ([url removed, login to view] != null)

{

[url removed, login to view] = new PricingReturn();

[url removed, login to view](new PricingDetail() { Description = "Production Servers", LicenseCost = [url removed, login to view] * PRODUCTION_SERVER / SUBSCRIPTION_PAYBACK});

var nonProdCost = [url removed, login to view] * PRODUCTION_SERVER / SUBSCRIPTION_PAYBACK;

[url removed, login to view](new PricingDetail() { Description = "Non Production Servers", LicenseCost = (nonProdCost > UNLIMITED_NON_PRODUCTION ? UNLIMITED_NON_PRODUCTION : nonProdCost)/ SUBSCRIPTION_PAYBACK });

if ([url removed, login to view])

{

if ([url removed, login to view] > 2)

{

[url removed, login to view](new PricingDetail() { Description = "Disaster Recovery", LicenseCost = UNLIMITED_DISASTER_RECOVERY / SUBSCRIPTION_PAYBACK });

}

else

{

[url removed, login to view](new PricingDetail() { Description = "Disaster Recovery", LicenseCost = [url removed, login to view] * NON_PRODUCTION_SERVER / SUBSCRIPTION_PAYBACK });

}

}

productionServerCount = [url removed, login to view];

nonProductionServerCount = [url removed, login to view];

}

AddCommonPricing([url removed, login to view], [url removed, login to view], productionServerCount, nonProductionServerCount, [url removed, login to view], [url removed, login to view], [url removed, login to view], [url removed, login to view]);

AddCommonPricing([url removed, login to view], [url removed, login to view], productionServerCount, nonProductionServerCount, [url removed, login to view], [url removed, login to view], [url removed, login to view], [url removed, login to view]);

return r;

}

技能: HTML, Javascript, Typescript

查看更多: software write mq4, software write chip epson, useful software write book, software write web specs, free software write user guide, software write edid, free software write company profile, software write websites idea, software write book images, software write books, javascript price calculation, acrobat javascript date calculation, acrobat javascript field calculation divide, javascript formula calculation adobe, software write protection, javascript total calculation asp adobe, free software write book, javascript acrobat calculation form fields, javascript numeric calculation, php javascript dynamic calculation, software write book, javascript else calculation adobe forms, javascript cost calculation, javascript auto calculation, google maps javascript distance calculation

项目ID: #12658467

已悬赏给:

AntonBliznetc

Hi, I am interested in your project. Please send full code of c#. I open this source. Is not full source code c# I can use C# and Javascript. I am a full time programmer with 20 year exp in Russia. I have hi degr 更多

$50 USD 在1天内
(1条评论)
0.0

14名威客为此工作的平均竞标价是$150

A2Design

Hi, Nice project you have there, let us help you with it! Our team is Russian-Canadian. We code in PHP. Check our recent projects here http://www.a2design.biz/portfolio_ Here’s a little video about our team too! ht 更多

$250 USD 在2天内
(42条评论)
7.9
$155 USD 在3天内
(98条评论)
5.9
mobiletech1604

Dear there Thank you for posting this project. I could start immediately. I could finish within 2 days. Looking forward to hear from you Thanks & B/R

$200 USD 在2天内
(6条评论)
5.3
sherifamgadnabih

i am a lead .Net software engineer and responsible for creating web and desktop applications using different languages and technologies if u r interested just send me a message thank you and good luck

$200 USD 在3天内
(29条评论)
5.3
$150 USD 在2天内
(24条评论)
4.3
$388 USD 在5天内
(5条评论)
4.8
$150 USD 在3天内
(10条评论)
4.0
ikramshah65

I have 5 years of web development experience in angularjs, asp.net MVC framework, jquery, JavaScript, Ajax , SQL server, mongodb I have mongodb certification as well http://university.mongodb.com/course_completion/d3 更多

$100 USD 在3天内
(5条评论)
4.0
sheikDev

Hello, Im interested to work on this. I have worked on similar jobs already Please have a look on my profile. Im more than 8 years experience in .NET and hands on both C# and JS. Thanks for your reply. Re 更多

$138 USD 在2天内
(5条评论)
2.7
Lionanaimal

I am Saleh A Java script web developer with 11 years experience I will deliver it within 36 hours You can check my portfolio at my own website www.familyofsaleh.com/salehdesigns I will deliver high quality work wi 更多

$94USD 在1天里
(1条评论)
1.7
YogsPatil

it's my pleasure if you hire me for these project

$88 USD 在2天内
(0条评论)
0.0
$55USD 在1天里
(0条评论)
0.0
jh3141

19 years' industry experience with substantial projects in both C# and Javascript. High quality code, including a redesign to make it easier to make modifications to your pricing calculation, and full documentation an 更多

$80 USD 在3天内
(0条评论)
2.5