コード例 #1
0
        private int pagerControlMaterial_EventPaging(CustomControl.EventPagingArg e)
        {
            int count = 0;
            List <AscmMtlOnhandQuantitiesDetail> list = DataBindDataGridView(ref count, this.materialId);

            pagerControlMaterial.DataBind(list);


            if (dgViewMaterialList.DataSource != null)
            {
                this.dgViewMaterialList.DataSource = null;
            }

            this.dgViewMaterialList.AutoGenerateColumns = false;
            this.dgViewMaterialList.DataSource          = pagerControlMaterial.bindingSource;
            this.dgViewMaterialList.Refresh();
            return(count);
        }
コード例 #2
0
        private int pagerControlTask_EventPaging(CustomControl.EventPagingArg e)
        {
            int count = 0;
            List <AscmGetMaterialTask> list = DataBindDataGridView(ref count, tbItemStart.Text, tbItemEnd.Text, cbItemTaskStatus.SelectedText);

            pagerControlTask.DataBind(list);

            if (dgViewTaskList.DataSource != null)
            {
                this.dgViewTaskList.DataSource = null;
            }

            this.dgViewTaskList.AutoGenerateColumns = false;
            this.dgViewTaskList.DataSource          = pagerControlTask.bindingSource;
            this.dgViewTaskList.Refresh();

            return(count);
        }
コード例 #3
0
        private int pagerControlMaterial_EventPaging(CustomControl.EventPagingArg e)
        {
            int count = 0;
            List <AscmWipRequirementOperations> list = DataBindDataGridView(ref count);

            pagerControlMaterial.DataBind(list);


            if (dgViewMaterialList.DataSource != null)
            {
                this.dgViewMaterialList.DataSource = null;
            }

            this.dgViewMaterialList.AutoGenerateColumns = false;
            this.dgViewMaterialList.DataSource          = pagerControlMaterial.bindingSource;
            this.dgViewMaterialList.Refresh();
            return(count);
        }
コード例 #4
0
        private int pagerControlJobs_EventPaging(CustomControl.EventPagingArg e)
        {
            int count = 0;
            List <AscmDiscreteJobs> list = DataBindDataGridView(ref count, tbItemStart.Text, tbItemEnd.Text);

            pagerControlJobs.DataBind(list);

            if (dgViewDiscreteJobsList.DataSource != null)
            {
                this.dgViewDiscreteJobsList.DataSource = null;
            }

            this.dgViewDiscreteJobsList.AutoGenerateColumns = false;
            this.dgViewDiscreteJobsList.DataSource          = pagerControlJobs.bindingSource;
            this.dgViewDiscreteJobsList.Refresh();

            return(count);
        }
コード例 #5
0
        private int pageControlTask_EventPaging(CustomControl.EventPagingArg e)
        {
            int count = 0;
            List <AscmWipDiscreteJobs> list = DataBindAdvTreeFristLevelNode(ref count, "");

            if (list != null && list.Count > 0)
            {
                advTreeGroup.BeginInit();
                StructureAdvTreeFristLevelNode(list, advTreeGroup);
                advTreeGroup.EndInit();
            }
            else
            {
                this.advTreeGroup.Nodes.Clear();
            }
            pageControlTask.DataBind(list);

            return(count);
        }