private void LoadTaskList()
 {
     Business.Sales.Tasks       Obj   = new Business.Sales.Tasks();
     Entity.Sales.GetTasksParam Param = new Entity.Sales.GetTasksParam
     {
         StartDateTime = DateTime.MinValue,
         EndDateTime   = DateTime.MinValue,
         LinkId        = OpportunityId,
         LinkType      = SalesLinkType.Opportunity
     };
     gvTasks.DataSource = Obj.GetAllTasks(Param);
     gvTasks.DataBind();
 }
예제 #2
0
 private void LoadTaskList()
 {
     Business.Sales.Tasks       Obj   = new Business.Sales.Tasks();
     Entity.Sales.GetTasksParam Param = new Entity.Sales.GetTasksParam
     {
         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);
     }
     gvTasks.DataSource = Obj.GetAllTasks(Param);
     gvTasks.DataBind();
 }