private void timer1_Tick(object sender, EventArgs e) { if (int.Parse(BooksBLL.GetBooksLikeName(BooksBLL.GetMinStockBooksName()).Rows[0][7].ToString()) < 6) { MessageBox.Show("《" + BooksBLL.GetMinStockBooksName() + "》" + " 库存不足6本!", "库存警告", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); } }
private void showbooknum_Tick(object sender, EventArgs e) { if (int.Parse(BooksBLL.GetBooksLikeName(BooksBLL.GetMinStockBooksName()).Rows[0][7].ToString()) < 6) { //MessageBox.Show(BooksBLL.GetMinStockBooksName() + " 库存不足6本!", "库存警告", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); this.kucunwarn.Text = "《" + BooksBLL.GetMinStockBooksName() + "》" + " 库存不足6本!"; } else { this.kucunwarn.Text = ""; } }
/// <summary> /// 模糊查询书本 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btn_chaxun_Click(object sender, EventArgs e) { this.dgv_goods.DataSource = BooksBLL.GetBooksLikeName(txt_goodsname.Text); }