protected void ImgDeleteCKD_Click(object sender, ImageClickEventArgs e) { try { string CKDH = this.txtCKDH.Text.Trim(); if (string.IsNullOrEmpty(CKDH)) { this.PrintfError("请选择要修改的单据"); return; } int status = QTCKQuery.GetStatus(CKDH); if (status > 0) { this.PrintfError("该单据已经执行,不能删除"); return; } string result = QTCKQuery.DeleteCKD(CKDH); if (result != "success") { this.PrintfError("删除过程中发生异常"); return; } txtCKDH.Text = ""; this.hidZT.Value = ""; ReturnStatus(); this.drpFHCK.SelectedIndex = -1; this.txtCPH.Text = ""; this.drpCKLX.Text = ""; this.txtNCDJ.Text = ""; this.txtFYRQ.Text = ""; this.txtMDD.Text = ""; this.drpCYS.SelectedIndex = -1; this.drpSHDW.Text = ""; this.txtStatus.Text = ""; this.txtZDR.Text = ""; this.txtZDRQ.Text = ""; Session["QTCKITEM"] = null; this.frameItem.Attributes["src"] = "QTCKD_item.aspx"; } catch { this.PrintfError("删除过程出现错误,请重试"); return; } }