Exemple #1
0
        public void ThemLoaiThietBi()
        {
            DataTable numberr;

            Dto_loaithietbi = new DTO_LoaiThietBi()
            {
                ID_CLASS1   = Convert.ToInt32(cbphonghoc.SelectedValue),
                NAMES_INF1  = txttenloaitb.Text.Trim(),
                Num_now     = Convert.ToInt32(txtsoluong.Text),
                Exp_machine = Convert.ToInt32(txttangtrongnam.Text),
                Day_inf     = combongaythang.Value.ToShortDateString(),
            };
            numberr = _db.LoaiThietBiInsert(ref err, Dto_loaithietbi);
            if (numberr.Rows.Count > 0)
            {
                ToastNotification.Show(this, numberr.Rows[0]["ErrMsg"].ToString(), null, 2000, (eToastGlowColor)eToastGlowColor.Blue, (eToastPosition)eToastPosition.BottomCenter);
            }
        }