private void LoadCallList() { Business.Sales.Calls Obj = new Business.Sales.Calls(); Entity.Sales.GetCallsParam Param = new Entity.Sales.GetCallsParam { StartDateTime = DateTime.MinValue, EndDateTime = DateTime.MinValue, LinkId = OpportunityId, LinkType = SalesLinkType.Opportunity }; gvCalls.DataSource = Obj.GetAllCalls(Param); gvCalls.DataBind(); }
private void LoadCallList() { Business.Sales.Calls Obj = new Business.Sales.Calls(); Entity.Sales.GetCallsParam Param = new Entity.Sales.GetCallsParam { 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); } gvCalls.DataSource = Obj.GetAllCalls(Param); gvCalls.DataBind(); }