Пример #1
0
        private void btnXem_Click(object sender, EventArgs e)
        {
            //set date
            this.doanhthu = new Entity.EntityDoanhThu(this.dtpStart.Value, this.dtpEnd.Value);
            //this.doanhthu.startdate = this.dtpStart.Value;
            //this.doanhthu.enddate = this.dtpEnd.Value;
            //bus

            this.dt            = bus.GetDataProc(doanhthu);
            this.bs.DataSource = dt;
            //tong tien
            this.lblDoanhThu.Text = TongTien().ToString("N0") + " VNĐ";
        }
Пример #2
0
 public DataTable GetDataProc(Entity.EntityDoanhThu dt)
 {
     return(da.GetDataProc(dt));
 }
Пример #3
0
 public DataTable GetDataProc(Entity.EntityDoanhThu DT)
 {
     SqlParameter[] para = { new SqlParameter("startdate", DT.startdate), new SqlParameter("enddate", DT.enddate) };
     return(conn.GetDataProc("ChiTietDoanhThu", para));
 }