Пример #1
0
 private void Delete(object sender, EventArgs e)
 {
     try
     {
         string ids = Request.Form["checkboxid"];
         if (string.IsNullOrEmpty(ids))
         {
             Common.MessageBox.Show(this, "请选中要删除的记录", Common.MessageBox.InfoType.warning);
             return;
         }
         var bl = new DS_PropertyValue_Br();
         bl.Delete(ids);
         Common.MessageBox.Show(this, "删除成功", Common.MessageBox.InfoType.info);
         AspNetPager_PageChanged(null, null);
     }catch (Exception ex) {
         Common.WriteLog.SetErrLog(Request.Url.ToString(), "Delete", ex.Message);
         Common.MessageBox.Show(this, "删除发生意外,请联系管理人员解决。" + ex.Message, Common.MessageBox.InfoType.error);
     }
 }
Пример #2
0
 private void Delete(object sender, EventArgs e)
 {
     try
     {
         string ids = Request.Form["checkboxid"];
         if (string.IsNullOrEmpty(ids)) {
             Common.MessageBox.Show(this, "请选中要删除的记录", Common.MessageBox.InfoType.warning);
             return;
         }
         var bl = new DS_PropertyValue_Br();
         bl.Delete(ids);
         Common.MessageBox.Show(this, "删除成功", Common.MessageBox.InfoType.info);
         AspNetPager_PageChanged(null, null);
     }catch(Exception ex){
         Common.WriteLog.SetErrLog(Request.Url.ToString(), "Delete", ex.Message);
         Common.MessageBox.Show(this, "删除发生意外,请联系管理人员解决。" + ex.Message, Common.MessageBox.InfoType.error);
     }
 }