protected void btnDelete_Click(object sender, EventArgs e) { if (txtNewIssueDate.Enabled) { if (!string.IsNullOrEmpty(hdUpdateIssueTransNo.Value)) { IssueDAL oIssueDAL = new IssueDAL(); Result oResult = (Result)oIssueDAL.DeteteIssueUpdate(hdIssueTransNo.Value, hdUpdateIssueTransNo.Value); if (oResult.Status) { TotalClear(); LoadUnapprovedList(); ucMessage.OpenMessage(Constants.MSG_SUCCESS_DELETE, Constants.MSG_TYPE_SUCCESS); } else { if (oResult.Message.Equals(Constants.TABLE_MAIN)) { ucMessage.OpenMessage(Constants.MSG_APPROVED_DELETE_DATA, Constants.MSG_TYPE_ERROR); } else { ucMessage.OpenMessage(Constants.MSG_ERROR_DELETE, Constants.MSG_TYPE_ERROR); } } } else { ucMessage.OpenMessage(Constants.MSG_ERROR_NOT_FOUND, Constants.MSG_TYPE_ERROR); } } else { ucMessage.OpenMessage(Constants.MSG_APPROVED_DELETE_DATA, Constants.MSG_TYPE_INFO); } }