private void button1_Click(object sender, EventArgs e) { BatteryModuleBll modBll = new BatteryModuleBll(); DBAccess.Model.BatteryModuleModel model = modBll.GetModelByPalletIDAndTag2("AA080000", "2", "A线模组-工装板绑定"); if (model != null) { MessageBox.Show("model != null"); } }