Esempio n. 1
0
 private void button4_Click(object sender, EventArgs e)
 {
     try
     {
         if (text搜索内容.Text != "")
         {
             dataGridView产品进出库.DataSource = pdm.GetAllProductFlowByName(label搜索栏目.Text, text搜索内容.Text);
             //this.material.GetAllMaterialByName(label搜索栏目.Text, text搜索内容.Text);
             dataGridView产品进出库.Update();
         }
         else
         {
             dataGridView产品进出库.DataSource = pdm.GetAllProductFlow();
             dataGridView产品进出库.Update();
         }
     }
     catch (Exception ex) { MessageBox.Show(ex.ToString() + "加载失败!"); }
 }