protected void ImgQXWCbtn_Click(object sender, ImageClickEventArgs e) { try { string CKDH = this.txtCKDH.Text.Trim(); string CK = this.drpFHCK.SelectedValue; if (string.IsNullOrEmpty(CKDH)) { this.PrintfError("请选择要重置的单据"); return; } int status = QTCKQuery.GetStatus(CKDH); if (status < 2) { this.PrintfError("不用取消"); return; } if (status == 2) { int result = QTCKQuery.QXWC(CKDH, CK, this.CUSER.UserID); if (result == 1) { this.txtStatus.Text = "正在执行"; } } } catch { this.PrintfError("取消完成过程出现错误,请重试"); return; } }