1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 using System.Text.RegularExpressions;
6
7 namespace SystemFramework.CommonFunctions
8 {
9 /// <summary>
10 /// Summary description for MoneyLib.
11 /// </summary>
12 public class MoneyManage
13 {
14 public MoneyManage()
15 {
16 //
17 // TODO: Add constructor logic here
18 //
19 }
20
21 /// <summary>
22 /// 檢查一個字符串是否Decimal,如果不是返回0.00
23 /// </summary>
24 /// <param name="strInput"></param>
25 /// <returns></returns>
26 public static string SetNullDecimal(string strInput)
27 {
28 if (!strInput.Trim().Equals("") && IsNumeric(strInput))
29 return strInput;
30 return "0.00";
31 }
32
33 public