Example #1
0
 private void DataDelete(string strPK)
 {
     try
     {
         PD_PROJECT_CONTRACT_Bll bll = new PD_PROJECT_CONTRACT_Bll();
         new PD_CONTRACT_CHANGE_Bll().DeletePROJECT(bll.GetModel(base.Request["UpdatePK"].ToString()).PD_PROJECT_CODE);
         bll.Delete(strPK);
         Const.DoSuccessNoClose("删除成功", this.Page.Request.Url.LocalPath + "?UpdatePK=" + strPK + "&doType=look&strTitle=", this.Page);
     }
     catch (Exception exception)
     {
         this.el = new ExceptionLog.ExceptionLog();
         this.el.ErrClassName = base.GetType().ToString();
         this.el.ErrMessage = exception.Message.ToString();
         this.el.ErrMethod = "DataDelete()";
         this.el.WriteExceptionLog(true);
         Const.OpenErrorPage("操作失败,请联系系统管理员!", this.Page);
     }
 }
 private void DataDelete(string strPK)
 {
     try
     {
         PD_PROJECT_CONTRACT_Bll bll = new PD_PROJECT_CONTRACT_Bll();
         new PD_CONTRACT_CHANGE_Bll().DeletePROJECT(bll.GetModel(strPK).PD_PROJECT_CODE);
         bll.Delete(strPK);
         if (this.Master.PageIndex > 1)
         {
             this.pageind = this.Master.PageIndex;
         }
         this.ShowData(this.Master.StrSelect);
     }
     catch (Exception exception)
     {
         this.el = new ExceptionLog.ExceptionLog();
         this.el.ErrClassName = base.GetType().ToString();
         this.el.ErrMessage = exception.Message.ToString();
         this.el.ErrMethod = "DataDelete()";
         this.el.WriteExceptionLog(true);
         Const.OpenErrorPage("操作失败,请联系系统管理员!", this.Page);
     }
 }