using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Text; using System.Configuration; using System.Data; using System.IO; using CrystalDecisions.CrystalReports.Engine; using CrystalDecisions.ReportSource; using CrystalDecisions.Reporting; using CrystalDecisions.Web; /// /// Summary description for JewelleryHelper /// public class JewelleryHelper { /// /// Get encoded selling price /// /// Selling price /// Encoded selling price public static string GetEncodedSellingPrice(string price) { char[] arrPrice = Math.Round(double.Parse(price) * 2).ToString().ToCharArray(); string finalSellingPrice = string.Empty; //Populating price in encoded format foreach (char letter in arrPrice) { finalSellingPrice += GetEncodedLetter(letter); }
Math.Round(Decimal.Parse(price) / 1000d, 0) * 1000;
char[] arrPrice = (Math.Round(decimal.Parse(price) / 1000d, 0) * 1000d).ToString().ToCharArray();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)