Example #1
0
        public List <Entity.Sales.GetLeads> GetAllLeads(Entity.Sales.GetLeadsParam Param)
        {
            List <Entity.Sales.GetLeads> AllLeadList = new List <Entity.Sales.GetLeads>();
            GetLeadsParamDbModel         p           = new GetLeadsParamDbModel();

            Param.CopyPropertiesTo(p);
            LeadsDataAccess.GetAllLeads(p).CopyListTo(AllLeadList);
            return(AllLeadList);
        }
 private void LoadLeadList()
 {
     Business.Sales.Leads       Obj   = new Business.Sales.Leads();
     Entity.Sales.GetLeadsParam Param = new Entity.Sales.GetLeadsParam {
         CampaignId = null, DepartmentId = null, Name = null, Email = null, SourceActivityTypeId = Convert.ToInt32(ActityType.Account), ChildActivityTypeId = Convert.ToInt32(ActityType.Lead)
     };
     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);
     }
     gvLeads.DataSource = Obj.GetAllLeads(Param);
     gvLeads.DataBind();
 }