protected void GrdReport_RowDeleting(object sender, GridViewDeleteEventArgs e) { try { int DeleteId = Convert.ToInt32(((ImageButton)GrdReport.Rows[e.RowIndex].Cells[0].FindControl("ImgBtnDelete")).CommandArgument.ToString()); Entity_Call.VoucherId = Convert.ToInt32(DeleteId); Entity_Call.LoginID = Convert.ToInt32(Session["UserID"]); Entity_Call.LoginDate = DateTime.Now; int iDelete = Obj_Call.DeletePaymentVoucher(ref Entity_Call, out StrError); if (iDelete != 0) { CommFun.ShowPopUpMsg("Record Deleted Successfully..!", this.Page); MakeEmptyForm(); } Entity_Call = null; Obj_Call = null; } catch (Exception ex) { throw new Exception(ex.Message); } }
public static string[] GetCompletionList(string prefixText, int count, string contextKey) { DMPaymentVoucher Obj_CN = new DMPaymentVoucher(); String[] SearchList = Obj_CN.GetSuggestedRecord(prefixText); return(SearchList); }