日期:2014-05-17 浏览次数:20853 次
DataTable dt = new DataTable();
dt.Columns.Add("币制名称", typeof(String));
dt.Columns.Add("应收金额", typeof(Decimal));
dt.Columns.Add("实收金额", typeof(Decimal));
DataRow dr1 = dt.NewRow();
dr1["币制名称"] = "RMB";
dr1["应收金额"] = 100;
dr1["实收金额"] = 100;
dt.Rows.Add(dr1);
DataRow dr2 = dt.NewRow();
dr2["币制名称"] = "USP";
dr2["应收金额"] = 11;
dr2["实收金额"] = 23;
dt.Rows.Add(dr2);
DataRow dr3 = dt.NewRow();
dr3["币制名称"] = "USP";
dr3["应收金额"] = 32;
dr3["实收金额"] = 14;
dt.Rows.Add(dr3);
DataRow dr4 = dt.NewRow();
dr4["币制名称"] = "JPY";
dr4["应收金额"] = 21;