Annulé

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;

}

I have attached the ACTUAL pricing logic as well as what a converter (duocode) produced in terms of the javascript.

the visual studio project has 3 key files.

Program.cs (this is the c# project that has testing logic built in - using XML not JSON)
ConvertedJS.txt (this is result of converter)
SourceForConverter (this is edited to allow the converter to work)

Compétences : HTML, Javascript, Typescript

Voir plus : 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

Concernant l'employeur :
( 8 commentaires ) Southern Shores, United States

N° du projet : #12658467

Décerné à :

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 Plus

50 $ USD en 1 jour
(1 Commentaire)
0.0

14 freelance ont fait une offre moyenne de 150 $ pour ce travail

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 [url removed, login to view] Here’s a little video about our team too! ht Plus

250 $ USD en 2 jours
(42 Commentaires)
7.9
155 $ USD en 3 jours
(98 Commentaires)
5.9
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 en 3 jours
(29 Commentaires)
5.3
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 en 2 jours
(6 Commentaires)
5.3
388 $ USD en 5 jours
(5 Commentaires)
4.8
150 $ USD en 2 jours
(24 Commentaires)
4.3
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 [url removed, login to view] Plus

100 $ USD en 3 jours
(5 Commentaires)
4.0
150 $ USD en 3 jours
(10 Commentaires)
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 Plus

138 $ USD en 2 jours
(5 Commentaires)
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 [url removed, login to view] I will deliver high quality work wi Plus

94 $ USD en 1 jour
(1 Commentaire)
1.7
YogsPatil

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

88 $ USD en 2 jours
(0 Commentaires)
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 Plus

80 $ USD en 3 jours
(0 Commentaires)
2.5
55 $ USD en 1 jour
(0 Commentaires)
0.0