public List <Entity.Sales.GetMeetings> GetAllMeetings(Entity.Sales.GetMeetingsParam Param) { List <Entity.Sales.GetMeetings> AllMeetingList = new List <Entity.Sales.GetMeetings>(); GetMeetingsParamDbModel p = new GetMeetingsParamDbModel(); Param.CopyPropertiesTo(p); MeetingsDataAccess.GetAllMeetings(p).CopyListTo(AllMeetingList); return(AllMeetingList); }
private void LoadMeetingList() { Business.Sales.Meetings Obj = new Business.Sales.Meetings(); Entity.Sales.GetMeetingsParam Param = new Entity.Sales.GetMeetingsParam { StartDateTime = DateTime.MinValue, EndDateTime = DateTime.MinValue, LinkId = OpportunityId, LinkType = SalesLinkType.Opportunity }; gvMeetingss.DataSource = Obj.GetAllMeetings(Param); gvMeetingss.DataBind(); }
private void LoadMeetingList() { Business.Sales.Meetings Obj = new Business.Sales.Meetings(); Entity.Sales.GetMeetingsParam Param = new Entity.Sales.GetMeetingsParam { StartDateTime = DateTime.MinValue, EndDateTime = DateTime.MinValue, 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); } gvMeetingss.DataSource = Obj.GetAllMeetings(Param); gvMeetingss.DataBind(); }