private void label8_Click(object sender, EventArgs e) { DataTable dtDS = new System.Data.DataTable(); dtDS = hhCtr.GetData(); dtgvDS.DataSource = dtDS; binhding(); DisEnl(false); }
private bool kiemtraSL(string mahh, int sl) { DataTable dt = new DataTable(); dt = hhctr.GetData("Where MaMB = '" + cmbHH.SelectedValue.ToString() + "' and SoLuong>= " + sl); if (dt.Rows.Count > 0) { return(true); } return(false); }
private void LoadcmbHH() { MayBayCtr hhctr = new MayBayCtr(); cmbHH.DataSource = hhctr.GetData(); cmbHH.DisplayMember = "TenMB"; cmbHH.ValueMember = "MaMB"; }