Beispiel #1
0
 protected void btnDelete_Click(object sender, System.EventArgs e)
 {
     try
     {
         PTPrjInfoZTBService pTPrjInfoZTBService        = new PTPrjInfoZTBService();
         PTPrjInfoService    pTPrjInfoService           = new PTPrjInfoService();
         System.Collections.Generic.IList <string> list = CsvHelper.ToList(this.hfldCheckedIds.Value);
         for (int i = 0; i < list.Count; i++)
         {
             string id = list[i];
             pTPrjInfoZTBService.Delete(id);
             pTPrjInfoService.Delete(id);
         }
         this.bindGv();
         base.RegisterScript("top.ui.show('删除成功');");
     }
     catch (System.Exception)
     {
         base.RegisterScript("top.ui.show('删除失败');");
     }
 }