void serviceClient_GetSexPieEmployeeceInfoCompleted(object sender, GetSexPieEmployeeceInfoCompletedEventArgs e)
        {
            if (e.Error != null)
            {
                MessageBox.Show("错误信息:" + e.Error.ToString());
            }
            else
            {
                if (e.Result != null)
                {
                    //等到员工数据
                    var employeeInfo = from p in e.Result select p;

                    List <PieEmployeece> employeeceList = new List <PieEmployeece>();
                    foreach (var item in employeeInfo)
                    {
                        PieEmployeece pieEmployeece = new PieEmployeece();
                        //婚姻状态
                        if (item.Sex == "1")
                        {
                            pieEmployeece.Sex = "男";
                        }

                        else if (item.Sex == "0")
                        {
                            pieEmployeece.Sex = "女";
                        }
                        //人数
                        pieEmployeece.CountEmployeece = item.CountEmployeece;
                        employeeceList.Add(pieEmployeece);
                    }

                    listPieEmployeece = employeeceList;

                    CreatePieChart();
                }
                else
                {
                    if (StrCompanyIDs == "")
                    {
                        MessageBox.Show("请选择公司!");
                    }
                    else
                    {
                        MessageBox.Show(nuYear.Value.ToString() + "年没有查询到数据!");
                        listPieEmployeece = null;
                    }
                }
            }
        }
        void serviceClient_GetSexPieEmployeeceInfoCompleted(object sender, GetSexPieEmployeeceInfoCompletedEventArgs e)
        {
            if (e.Error != null)
            {
                MessageBox.Show("错误信息:" + e.Error.ToString());
            }
            else
            {
                if (e.Result != null)
                {
                    //等到员工数据
                    var employeeInfo = from p in e.Result select p;

                    List<PieEmployeece> employeeceList = new List<PieEmployeece>();
                    foreach (var item in employeeInfo)
                    {
                        PieEmployeece pieEmployeece = new PieEmployeece();
                        //婚姻状态
                        if (item.Sex =="1")
                        {
                            pieEmployeece.Sex = "男";
                        }

                        else if (item.Sex == "0")
                        {
                            pieEmployeece.Sex = "女";
                        }
                        //人数
                        pieEmployeece.CountEmployeece = item.CountEmployeece;
                        employeeceList.Add(pieEmployeece);
                    }

                    listPieEmployeece = employeeceList;

                    CreatePieChart();
                }
                else
                {
                    if (StrCompanyIDs == "")
                    {
                        MessageBox.Show("请选择公司!");
                    }
                    else
                    {
                        MessageBox.Show(nuYear.Value.ToString() + "年没有查询到数据!");
                        listPieEmployeece = null;
                    }
                }
            }
        }