private void LoadLeadsDropdowns() { Business.Sales.Leads Obj = new Business.Sales.Leads(); Business.Sales.Campaign CampaignObj = new Business.Sales.Campaign(); Entity.Sales.GetCampaignParam Param = new Entity.Sales.GetCampaignParam { EndDate = DateTime.MinValue, StartDate = DateTime.MinValue, Name = null }; ddlCampaign.DataSource = CampaignObj.GetAllCampaign(Param); ddlCampaign.DataTextField = "Name"; ddlCampaign.DataValueField = "Id"; ddlCampaign.DataBind(); ddlCampaign.InsertSelect(); ddlDepartment.DataSource = Obj.GetDepartment(); ddlDepartment.DataTextField = "Name"; ddlDepartment.DataValueField = "Id"; ddlDepartment.DataBind(); ddlDepartment.InsertSelect(); }
private void LoadCampaignList() { Business.Sales.Campaign Obj = new Business.Sales.Campaign(); Entity.Sales.GetCampaignParam Param = new Entity.Sales.GetCampaignParam { EndDate = DateTime.MinValue, StartDate = DateTime.MinValue, Name = null }; 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); } gvCampaign.DataSource = Obj.GetAllCampaign(Param); gvCampaign.DataBind(); }