Ejemplo n.º 1
0
        /// <summary>
        /// 打卡号
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void DaKa_Click(object sender, RoutedEventArgs e)
        {
            //有问题
            int a = Manager.GetKaHaoCombox(KAhao.SelectedValue.ToString());

            if (a > 0)
            {
                MessageBox.Show("添加成功");
            }
            kaoQins = Manager.GetKaHaoAddStudent(KAhao.SelectedValue.ToString());
            //DataGrid进行数据绑定,DataGrid的名字叫smDgStudentLsit
            DataGridKC.ItemsSource = kaoQins;//把获取到的路径students赋给DataGrid表里

            Manager.GetHuiFu();
        }