Exemple #1
0
        private void BindGrid()
        {
            string  riqi = dtpSearchDate.Value.Date.ToString("yyyy-MM-dd");
            DataSet ds   = new TaocanVoteDAL().GetTaocanVote(riqi);

            dgvTaocan.DataSource = ds.Tables[0];
        }
Exemple #2
0
        private void ChangeTaocanDetail(string taocanid)
        {
            lbTaocanDetail.Items.Clear();

            DataSet ds = new TaocanVoteDAL().GetTaocandetailVote(taocanid);

            foreach (DataRow row in ds.Tables[0].Rows)
            {
                string detail = row[2].ToString().PadRight(10, ' ') + row[4].ToString().PadRight(4, ' ') + row[5].ToString().PadRight(10, ' ') + row[7].ToString().PadRight(4, ' ') + " 倍数:" + row[8].ToString().PadRight(4, ' ') + " 奖金:" + row[9].ToString().PadRight(10, ' ');
                lbTaocanDetail.Items.Add(detail);
            }
        }