public string ConvertMoney(decimal Money){//金额转换程序string MoneyNum = "";//记录小写金额字符串[输入参数]string MoneyStr = "";//记录大写金额字符串[输出参数]string BNumStr = "零壹贰叁肆伍陆柒捌玖";//模string UnitStr = "万仟佰拾亿仟佰拾万仟佰拾圆角分";//模MoneyNum = ((long)(Money * 100)).ToString();for (int i = 0; i < MoneyNum.Length; i++){string DVar = "";//记录生成的单个字符(大写)string UnitVar = "";//记录截取的单位for (int n = 0; n < 10; n++){//对比后生成单个字符(大写)if (Convert.ToInt32(MoneyNum.Substring(i, 1)) == n){DVar = BNumStr.Substring(n, 1);//取出单个大写字符//给生成的单个大写字符加单位UnitVar = UnitStr.Substring