日期:2014-05-17 浏览次数:21039 次
int jshj = 0;
double zlhj = 0;
double tjhj = 0;
double hwyf = 0;
double bxe = 0;
double bxf = 0;
double hwhk = 0;
double zyf = 0;
protected void gvData_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
DataRowView myrows = (DataRowView)e.Row.DataItem;
jshj += Convert.ToInt32(myrows[3].ToString());
zlhj += Convert.ToDouble(myrows[4].ToString());
tjhj += Convert.ToDouble(myrows[5].ToString());
hwyf += Convert.ToDouble(myrows[8].ToString());
bxe += Convert.ToDouble(myrows[9].ToString());
bxf += Convert.ToDouble(myrows[10].ToString());
hwhk += Convert.ToDouble(myrows[11].ToString());
zyf += Convert.ToDouble(myrows[12].ToString());