Exemplo n.º 1
0
 protected void btnDelete_Click(object sender, System.EventArgs e)
 {
     try
     {
         PTPrjInfoService pTPrjInfoService = new PTPrjInfoService();
         System.Collections.Generic.List <string> listFromJson = JsonHelper.GetListFromJson(this.hfldCheckedIds.Value);
         listFromJson.Reverse();
         foreach (string current in listFromJson)
         {
             if (pTPrjInfoService.GetCountProject(current) > 0)
             {
                 base.RegisterScript("top.ui.show('请删除子项目');");
                 return;
             }
             SelfEventAction.SuperDelete(current, "PT_PrjInfo_ZTB_Detail", "SetUpFlowState");
         }
         ProjectInfo.Del(listFromJson);
         this.BindGv();
         base.RegisterScript("top.ui.show('删除成功');");
     }
     catch
     {
         base.RegisterScript("top.ui.show('删除失败');");
     }
 }