Ejemplo n.º 1
0
        /// <summary>
        /// Bind Grid
        /// </summary>
        private void BindTemplateTasksGrid()
        {
            int    pageSize       = AspNetPager1.PageSize;
            int    pageIndex      = PageIndex;
            string queryCondition = GenerateQueryCondition();

            if (WflTemplId == 0)
            {
                return;
            }
            int recordCount = 0;

            DataSet tpLists = null;

            try
            {
                tpLists = template.GetTemplateWorkflowTasks(pageSize, pageIndex, queryCondition, out recordCount, OrderName, OrderType);
            }
            catch (Exception exception)
            {
                LPLog.LogMessage(exception.Message);
            }

            AspNetPager1.PageSize    = pageSize;
            AspNetPager1.RecordCount = recordCount;

            gvTaskList.DataSource = null;
            gvTaskList.DataBind();
            gvTaskList.DataSource = tpLists;
            gvTaskList.DataBind();
        }