コード例 #1
0
        public void MethPaySumDataBind()
        {
            //根据用户登录ID 查询
            //string strWhere = Session["UserID"].ToString();
            string strWhere = UserNow.UserID;

            //先写死测试
            GridView1.DataSource = gaBll.GeMethPaySumMoney(strWhere, 0);
            GridView1.DataBind();

            DataSet ds = gaBll.GeMethPaySumMoney(strWhere, 0);

            foreach (DataRow row in ds.Tables[0].Rows)
            {
                Sum           += Convert.ToDouble(row["ga_sum_price"].ToString());
                Session["Sum"] = Sum;
            }
        }