Exemplo n.º 1
0
 private void but_del_Click(object sender, EventArgs e)
 {
     if (this.lsvHouse.SelectedItems.Count <= 0)
     {
         MessageBox.Show("请选择要删除的库房!");
         return;
     }
     if (Clsxtpz.selectHouseID == 0)
     {
         return;
     }
     if (T_Sysset.isHouseData())
     {
         MessageBox.Show("此库房存在数据无法删除!");
         return;
     }
     V_HouseName.HouseSetid = Clsxtpz.selectHouseID;
     T_Sysset.DeleteHouse();
     LoadHouse();
 }