Esempio n. 1
0
        private int pageControlTask_EventPaging(PageControl.EventPagingArg e)
        {
            int count = 0;
            List <AscmGetMaterialTask> listTasks = GetTaskTree(ref count);

            if (listTasks != null && listTasks.Count > 0)
            {
                DataBindTaskTree(listTasks);
            }
            pageControlTask.DataBind(listTasks);

            DataBindTaskTree(listTasks);
            return(count);
        }
Esempio n. 2
0
        /// <summary>
        /// 分页数据绑定事件 pageControl.bind()可触发
        /// </summary>
        /// <param name="e"></param>
        /// <returns></returns>
        private int pageControlTask_EventPaging(PageControl.EventPagingArg e)
        {
            int count = 0;
            List <AscmGetMaterialTask> listTasks = taskQuery(ref count);

            pageControlTask.DataBind(listTasks);

            if (dataGridViewTasks.DataSource != null)
            {
                dataGridViewTasks.DataSource = null;
                dataGridViewTasks.Refresh();
            }
            dataGridViewTasks.AutoGenerateColumns = false;
            dataGridViewTasks.DataSource          = pageControlTask.bindingSource;
            return(count);
        }
Esempio n. 3
0
        private int pcMaterialList_EventPaging(PageControl.EventPagingArg e)
        {
            int count = 0;
            List <AscmMaterialItem> list = GetMaterialItem(ref count);

            pcMaterialList.DataBind(list);

            if (dgMaterialList.DataSource != null)
            {
                dgMaterialList.DataSource = null;
                dgMaterialList.Refresh();
            }
            dgMaterialList.AutoGenerateColumns = false;
            dgMaterialList.DataSource          = pcMaterialList.bindingSource;
            return(count);
        }
Esempio n. 4
0
        /// <summary>
        /// 分页数据绑定事件 pageControl.bind()可触发
        /// </summary>
        /// <param name="e"></param>
        /// <returns></returns>
        private int pageControlMaterial_EventPaging(PageControl.EventPagingArg e)
        {
            int count = 0;
            List <AscmMaterialItem> listMaterials = materialQuery(ref count);

            pageControlMaterial.DataBind(listMaterials);

            if (dataGridViewMaterials.DataSource != null)
            {
                dataGridViewMaterials.DataSource = null;
                dataGridViewMaterials.Refresh();
            }
            dataGridViewMaterials.AutoGenerateColumns = false;
            dataGridViewMaterials.DataSource          = pageControlMaterial.bindingSource;
            return(count);
        }
Esempio n. 5
0
        private int pageControlMaterial_EventPaging(PageControl.EventPagingArg e)
        {
            int count = 0;
            List <AscmWipRequirementOperations> list = GetWipRequirementOperations(ref count);

            pageControlMaterial.DataBind(list);

            if (dgMaterialList.DataSource != null)
            {
                dgMaterialList.DataSource = null;
                dgMaterialList.Refresh();
            }
            dgMaterialList.AutoGenerateColumns = false;
            dgMaterialList.DataSource          = pageControlMaterial.bindingSource;
            return(count);
        }