예제 #1
0
        /// <summary>
        /// 初始化部门数据
        /// </summary>
        private void InitDepartmentData()
        {
            this.compareData = new List <EnergyCompare>();

            EnergyCompare item = new EnergyCompare();

            item.ItemName = this.currentDepartment.Name;
            item.Include  = true;
            this.compareData.Add(item);

            this.compareGrid.DataSource = compareData;
            this.compareGrid.SetItemNameTitle("部门名称");
        }
예제 #2
0
        /// <summary>
        /// 初始化分组数据
        /// </summary>
        private void InitGroupData()
        {
            this.compareData = new List <EnergyCompare>();
            var departments = BusinessFactory <DepartmentBusiness> .Instance.FindInGroup(currentGroup.Code, true);

            foreach (var department in departments)
            {
                EnergyCompare item = new EnergyCompare();
                item.ItemName = department.Name;
                item.Include  = true;
                this.compareData.Add(item);
            }

            this.compareGrid.DataSource = compareData;
            this.compareGrid.SetItemNameTitle("部门名称");
        }