Пример #1
0
        private void btnXem_Click(object sender, EventArgs e)
        {
            if (comboBox1.SelectedIndex == 0)
            {
                DataTable dt = new DataTable();
                dt = ThongKeMatHang_BUS.HangBanChayNgay(timeEdit1.Text);
                gridControl2.DataSource = dt;
            }

            if (comboBox1.SelectedIndex == 1)
            {
                DataTable dt = new DataTable();
                dt = ThongKeMatHang_BUS.HangBanChayThang(timeEdit1.Text);
                gridControl2.DataSource = dt;
            }

            if (comboBox1.SelectedIndex == 2)
            {
                DataTable dt = new DataTable();
                dt = ThongKeMatHang_BUS.HangBanChayNam(Convert.ToInt32(timeEdit1.Text));
                gridControl2.DataSource = dt;
            }
        }
Пример #2
0
 private void ThongKeMatHang_Load(object sender, EventArgs e)
 {
     comboBox1.SelectedIndex = 0;
     gridControl1.DataSource = ThongKeMatHang_BUS.HangTonKho();
 }