Exemplo n.º 1
0
        private bool kiemtraSL(string mahh, int sl)
        {
            DataTable dt = new DataTable();

            dt = hhctr.GetData("Where MaHang = '" + cmbHH.SelectedValue.ToString() + "' and SoLuong>= " + sl);
            if (dt.Rows.Count > 0)
            {
                return(true);
            }
            return(false);
        }
Exemplo n.º 2
0
        private void LoadcbHangHoa()
        {
            HangHoaCtrl hhctr = new HangHoaCtrl();

            cbHH.DataSource    = hhctr.GetData();
            cbHH.DisplayMember = "TenHH";
            cbHH.ValueMember   = "MaHH";
        }
Exemplo n.º 3
0
        private void frmHangHoa_Load(object sender, EventArgs e)
        {
            DataTable dtHangHoa = new DataTable();

            dtHangHoa          = hhCtr.GetData();
            dtgvDS2.DataSource = dtHangHoa;
            binhding();
            dis_en(false);
        }
Exemplo n.º 4
0
        private void HangHoaForm_Load(object sender, EventArgs e)
        {
            DataTable dtDS = new System.Data.DataTable();

            dtDS = hhCtr.GetData();
            dtgvDS.DataSource = dtDS;
            binhding();
            DisEnl(false);
        }