Пример #1
0
 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);
     }
 }
Пример #2
0
 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 = "";
     }
 }
Пример #3
0
 /// <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);
 }