private void LoadNotesList() { Business.Sales.Notes Obj = new Business.Sales.Notes(); Entity.Sales.GetNotesParam Param = new Entity.Sales.GetNotesParam { LinkId = OpportunityId, LinkType = SalesLinkType.Opportunity }; gvNotes.DataSource = Obj.GetAllNotes(Param); gvNotes.DataBind(); }
private void LoadNotesList() { Business.Sales.Notes Obj = new Business.Sales.Notes(); Entity.Sales.GetNotesParam Param = new Entity.Sales.GetNotesParam { LinkId = (!string.IsNullOrEmpty(hdnItemType.Value)) ? Convert.ToInt32(hdnItemId.Value) : 0, LinkType = (!string.IsNullOrEmpty(hdnItemType.Value)) ? (SalesLinkType)Enum.Parse(typeof(SalesLinkType), hdnItemType.Value) : SalesLinkType.None }; if (HttpContext.Current.User.IsInRole(Entity.HR.Utility.CUSTOMER_LIST_SHOW_ALL)) { Param.AssignEngineer = 0; } else { Param.AssignEngineer = int.Parse(HttpContext.Current.User.Identity.Name); } gvNotes.DataSource = Obj.GetAllNotes(Param); gvNotes.DataBind(); }