示例#1
0
        private void label8_Click(object sender, EventArgs e)
        {
            DataTable dtDS = new System.Data.DataTable();

            dtDS = hhCtr.GetData();
            dtgvDS.DataSource = dtDS;
            binhding();
            DisEnl(false);
        }
示例#2
0
        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);
        }
示例#3
0
        private void LoadcmbHH()
        {
            MayBayCtr hhctr = new MayBayCtr();

            cmbHH.DataSource    = hhctr.GetData();
            cmbHH.DisplayMember = "TenMB";
            cmbHH.ValueMember   = "MaMB";
        }