Beispiel #1
0
        private void btnThietLapDDH_Click(object sender, EventArgs e) // bat dau lap don dat hang tren kho va tu nha cung cap nao`
        {
            bool makho  = f.CheckNullValueCBox(mAKHOComboBox);
            bool tenkho = f.CheckNullValueCBox(tENKHOComboBox);
            bool nhacc  = f.CheckNullValueCBox(cBoxNhaCC);

            if (makho && tenkho && nhacc)
            {
                tBoxSoluong.Enabled                = true;
                btnThem.Enabled                    = true;
                cBoxNhaCC.Enabled                  = false;
                mAKHOComboBox.Enabled              = false;
                tENKHOComboBox.Enabled             = false;
                btnThietLapDDH.Visible             = false;
                btnHuy.Visible                     = true;
                gridView3.OptionsBehavior.Editable = true;


                DonDH dondh = new DonDH();
                maDDH = dondh.getMaDDH();
                maDDH.Read();
                labelDDH.Text = maDDH["MADDH"].ToString();
                maDDH.Close();
            }
        }