Пример #1
0
 /// <summary>
 /// 显示列表信息
 /// </summary>
 /// <param name="gvList">GridView对象</param>
 /// <param name="pageInfo">分页信息</param>
 public void ShowList(PagedGridView gvList, PageInfo pageInfo)
 {
     //IPageOfList<TransControl> result = transControlService.FindAll(GetFilterParameters(), pageInfo);
     DataTable result = transControlService.FindTansControl(GetFilterParameters(),pageInfo);
     gvList.ItemCount = pageInfo.ItemCount;
     gvList.DataSource = result;
     gvList.DataBind();
 }
Пример #2
0
 /// <summary>
 /// 显示列表信息
 /// </summary>
 /// <param name="gvList">GridView对象</param>
 /// <param name="pageInfo">分页信息</param>
 public void ShowList(PagedGridView gvList, PageInfo pageInfo)
 {
     DataTable result = transitionService.FindTransition(GetFilterParameters(), pageInfo);
     //IPageOfList<DataTable> result = transitionService.FindTransition(GetFilterParameters(),pageInfo).Cast<AgileEAP.Core.IPageOfList<DataTable>>;//FindAll(GetFilterParameters(), pageInfo);
     gvList.ItemCount = pageInfo.ItemCount;
     gvList.DataSource = result;
     gvList.DataBind();
 }
Пример #3
0
        /// <summary>
        /// 显示列表信息
        /// </summary>
        /// <param name="gvList">GridView对象</param>
        /// <param name="pageInfo">分页信息</param>
        public void ShowList(PagedGridView gvList, PageInfo pageInfo)
        {
            IDictionary<string, object> parameters = GetFilterParameters();
            if (Request.QueryString["Entry"] == "WaitExecute")
            {
                parameters.SafeAdd("CurrentState", (short)WorkItemStatus.WaitExecute);
            }
            else if (Request.QueryString["Entry"] == "Compeleted")
            {
                parameters.SafeAdd("CurrentState", new Condition(string.Format(" CurrentState !={0}", (short)WorkItemStatus.WaitExecute)));
            }

            IPageOfList<WorkItem> result = IsAdmin ? repository.FindAll<WorkItem>(parameters, "order by CreateTime desc", pageInfo) : workflowEngine.GetMyWorkItems(User.ID, parameters, null, pageInfo);
            if (result != null)
            {
                gvList.IncludeRowDoubleClick = false;
                gvList.ItemCount = result.PageInfo.ItemCount;
                gvList.DataSource = result.OrderByDescending(o => o.StartTime);
                gvList.DataBind();
            }
        }
Пример #4
0
 /// <summary>
 /// 显示列表信息
 /// </summary>
 /// <param name="gvList">GridView对象</param>
 /// <param name="pageInfo">分页信息</param>
 public void ShowList(PagedGridView gvList, PageInfo pageInfo)
 {
     IDictionary<string, object> parameters = new Dictionary<string, object>();
     parameters.SafeAdd("CatalogID", CurrentId);
     parameters.SafeAdd("dataFilter", new Condition(GetFilterString()));
     IPageOfList<UploadFile> result = uploadFileService.FindAll(parameters, "Order By FileName", pageInfo);
     gvList.ItemCount = result.PageInfo.ItemCount;
     gvList.DataSource = result;
     gvList.DataBind();
 }
Пример #5
0
 /// <summary>
 /// 显示列表信息
 /// </summary>
 /// <param name="gvList">GridView对象</param>
 /// <param name="pageInfo">分页信息</param>
 public void ShowList(PagedGridView gvList, PageInfo pageInfo)
 {
     IPageOfList<ProcessDef> result = repository.FindAll<ProcessDef>(GetFilterParameters(), pageInfo);
     gvList.ItemCount = result.PageInfo.ItemCount;
     gvList.DataSource = result;
     gvList.DataBind();
 }
Пример #6
0
 /// <summary>
 /// 显示列表信息
 /// </summary>
 /// <param name="gvList">GridView对象</param>
 /// <param name="pageInfo">分页信息</param>
 public void ShowList(PagedGridView gvList, PageInfo pageInfo)
 {
     IPageOfList<App> result = appService.FindAll(GetFilterParameters(), pageInfo);
     gvList.ItemCount = result.PageInfo.ItemCount;
     gvList.DataSource = result.OrderBy(o => o.SortOrder);
     gvList.DataBind();
 }
Пример #7
0
 /// <summary>
 /// 生成设计时html
 /// </summary>
 /// <returns></returns>
 public override string GetDesignTimeHtml()
 {
     designGridView = (PagedGridView)Component;
     designGridView.ItemCount = 250;
     System.IO.StringWriter sw = new System.IO.StringWriter();
     HtmlTextWriter writer = new HtmlTextWriter(sw);
     designGridView.RenderControl(writer);
     return sw.ToString();
 }
Пример #8
0
        /// <summary>
        /// 显示列表信息
        /// </summary>
        /// <param name="gvList">GridView对象</param>
        /// <param name="pageInfo">分页信息</param>
        public void ShowList(PagedGridView gvList, PageInfo pageInfo)
        {
            WorkflowEngine wfEngine = new WorkflowEngine();
            IList<Activity> result = wfEngine.GetProcessDefine(ProcessDefID).Activities.OrderBy(a => a.ActivityType).ToList();

            gvList.ItemCount = result.Count;
            gvList.DataSource = result;
            gvList.DataBind();
        }
Пример #9
0
        /// <summary>
        /// 显示列表信息
        /// </summary>
        /// <param name="gvList">GridView对象</param>
        /// <param name="pageInfo">分页信息</param>
        public void ShowList(PagedGridView gvList, PageInfo pageInfo)
        {
            gvList.AllowPaging = true;
            string orgId = Request.QueryString["orgid"];
            if (!string.IsNullOrWhiteSpace(orgId))
            {
                string filter = GetFilterString();
                IDictionary<string, object> para = GetFilterParameters();

                Organization organization =repository.GetDomain<Organization>(orgId);
                if (organization != null)
                {
                    para.SafeAdd("OrgID", new Condition(string.Format(" OwnerOrg like '{0}%' AND UserType!=0 ", organization.OwnerOrg)));
                }
                DataTable dt = operatorService.GetOperatorByOrg(para, pageInfo, filter);
                gvList.ItemCount = pageInfo.ItemCount;
                gvList.DataSource = dt;
                gvList.DataBind();
            }
        }
Пример #10
0
 /// <summary>
 /// 显示列表信息
 /// </summary>
 /// <param name="gvList">GridView对象</param>
 /// <param name="pageInfo">分页信息</param>
 public void ShowList(PagedGridView gvList, PageInfo pageInfo)
 {
     IDictionary<string, object> parameters = GetFilterParameters();
     parameters.SafeAdd("dataFilter", new Condition(GetFilterString()));
     if (User.UserType != 0)
         parameters.SafeAdd("ID", new Condition(string.Format(" OwnerOrg like '{0}%' ", GetOrgPath())));
     IPageOfList<Role> result = repository.FindAll<Role>(parameters, "Order By Name", pageInfo);
     gvList.ItemCount = result.PageInfo.ItemCount;
     gvList.DataSource = result;
     gvList.DataBind();
 }
Пример #11
0
 /// <summary>
 /// 显示列表信息
 /// </summary>
 /// <param name="gvList">GridView对象</param>
 /// <param name="pageInfo">分页信息</param>
 public void ShowList(PagedGridView gvList, PageInfo pageInfo)
 {
     IPageOfList<PersonalParam> result = personalParamService.FindAll(GetFilterParameters(), pageInfo);
     gvList.ItemCount = result.PageInfo.ItemCount;
     gvList.DataSource = result;
     gvList.DataBind();
 }
Пример #12
0
 /// <summary>
 /// 显示列表信息
 /// </summary>
 /// <param name="gvList">GridView对象</param>
 /// <param name="pageInfo">分页信息</param>
 public void ShowList(PagedGridView gvList, PageInfo pageInfo)
 {
     IPageOfList<ProcessInst> result = repository.FindAll<ProcessInst>(GetFilterParameters(), "Order by StartTime desc", pageInfo);
     gvList.ItemCount = result.PageInfo.ItemCount;
     gvList.DataSource = result;
     gvList.DataBind();
 }
Пример #13
0
 /// <summary>
 /// 显示列表信息
 /// </summary>
 /// <param name="gvList">GridView对象</param>
 /// <param name="pageInfo">分页信息</param>
 public void ShowList(PagedGridView gvList, PageInfo pageInfo)
 {
     IPageOfList<ActionLog> result = repository.FindAll<ActionLog>(GetFilterParameters(), " order by CreateTime desc ", pageInfo);
     gvList.ItemCount = result.PageInfo.ItemCount;
     gvList.DataSource = result;
     gvList.DataBind();
 }
Пример #14
0
 /// <summary>
 /// 显示列表信息
 /// </summary>
 /// <param name="gvList">GridView对象</param>
 /// <param name="pageInfo">分页信息</param>
 public void ShowList(PagedGridView gvList, PageInfo pageInfo)
 {
     IPageOfList<AgileEAP.Infrastructure.Domain.Module> result = moduleService.FindAll(GetFilterParameters(), pageInfo);
     gvList.ItemCount = result.PageInfo.ItemCount;
     gvList.DataSource = result;
     gvList.DataBind();
 }