Exemple #1
0
        // 得到所有的人员
        public List <CommContracts.Employee> GetAllEmployee(string strName = "")
        {
            CommClient.Employee myd = new CommClient.Employee();

            List <CommContracts.Employee> list = new List <CommContracts.Employee>();

            list = myd.GetAllEmployee(strName);
            return(list);
        }
        private void mnuAddDate_Click(object sender, RoutedEventArgs e)
        {
            CommClient.Employee           employeeClient = new CommClient.Employee();
            List <CommContracts.Employee> list           = employeeClient.GetAllEmployee();

            mailMerge1.SearchPath = "";

            mailMerge1.MergeObject(list.ElementAt(0));
        }