//加千分符
private string FormatValue(decimal value)
{
string tempStr = value.ToString();
Match m = Regex.Match(tempStr, @"(\d+)(\.\d+)?");
string before_str = m.Groups[1].Value;
//string after_str = m.Groups[2].Value;
before_str = string.Join("", before_str.Reverse());
before_str = Regex.Replace(before_str, @"(?<=\G\d{3})(?=(?!$).)", ",");
before_str = string.Join("", before_str.Reverse());
return before_str;// +after_str;
}
private string FormatValue(decimal value)
{
string tempStr = value.ToString();
Match m = Regex.Match(tempStr, @"(\d+)(\.\d+)?");
string before_str = m.Groups[1].Value;
//string after_str = m.Groups[2].Value;
before_str = string.Join("", before_str.Reverse());
before_str = Regex.Replace(before_str, @"(?<=\G\d{3})(?=(?!$).)", ",");
before_str = string.Join("", before_str.Reverse());
return before_str;// +after_str;
}