Ejemplo n.º 1
0
        private IList CreateStatisticDatas(StatisticTypes sType)
        {
            switch (sType)
            {
            //case StatisticTypes.ORGAndEQUStatisticType:
            //    return StatisticHelper.StatisticEquipment(_activityGuid);
            //case StatisticTypes.FreqPartPlanStatisticType:
            //    return StatisticHelper.StatisticFreqPartPlan(_activityGuid);
            //case StatisticTypes.SurroundStatStatisticType:
            //    return StatisticHelper.StatisticSurroundStation(_activityGuid);
            //case StatisticTypes.FreqAssignStatisticType:
            //    return StatisticHelper.StatisticFreqAssign(_activityGuid);
            //case StatisticTypes.EquInspectionSticType: //设备检测
            //    return StatisticHelper.StatisticEquInspection(_activityGuid);
            case StatisticTypes.PersonPlanStatisticType:
                return(StatisticHelper.StatisticPersonPlan(_activityGuid));


            case StatisticTypes.PersonRPStatisticType:
                return(StatisticHelper.StatisticPersonRP());



            case StatisticTypes.PersonOutStatisticType:
                return(StatisticHelper.StatisticPersonOut());



            default:
                return(null);
            }
        }
Ejemplo n.º 2
0
        public StatisticModule(int i)
        {
            InitializeComponent();


            if (i == 1)
            {
                itemPersonRF.Visibility = Visibility.Collapsed;
            }
            else if (i == 2)
            {
                itemPersonPlan.Visibility = Visibility.Collapsed;
                itemPersonOut.Visibility  = Visibility.Collapsed;



                _activityGuid = CO_IA.Client.RiasPortal.ModuleContainer.Activity.Guid;
                Dictionary <string, string> dicActivitySite = StatisticHelper.InitActivityPlace();
                xComboboxSite.ItemsSource        = dicActivitySite;
                xComboboxSite.DisplayMemberPath  = "Value";
                xComboboxSite.SelectedValuePath  = "Key";
                this.xComboboxSite.SelectedIndex = 2;
                this.listBoxMenu.SelectedIndex   = 2;
            }
            //InitStatisticUI();
        }
Ejemplo n.º 3
0
        /// <summary>
        /// 初始化时,默认统计单位设备管理
        /// </summary>
        private void InitStatisticUI()
        {
            _activityGuid = CO_IA.Client.RiasPortal.ModuleContainer.Activity.Guid;
            Dictionary <string, string> dicActivitySite = StatisticHelper.InitActivityPlace();

            xComboboxSite.ItemsSource        = dicActivitySite;
            xComboboxSite.DisplayMemberPath  = "Value";
            xComboboxSite.SelectedValuePath  = "Key";
            this.xComboboxSite.SelectedIndex = 0;
            this.listBoxMenu.SelectedIndex   = 0;
        }
Ejemplo n.º 4
0
 /// <summary>
 /// 设备统计详情
 /// </summary>
 /// <param name="equloadstrategy"></param>
 private void QueryEQUStatisticDetail(EquipmentLoadStrategy equloadstrategy)
 {
     ActivityEquipment[] activityequs = StatisticHelper.QueryActivityEquipments(equloadstrategy);
     CreateActivityEquipmentListControl(activityequs);
 }