コード例 #1
0
        /// <summary>
        /// 查询正在上机学生
        /// </summary>
        /// <returns>以表形式返回,正在上机学生信息</returns>
        private DataTable SelectOnLineStudent(out string StrMsg)
        {
            OnLineStudentIBLL onlinestudentIBLL        = (OnLineStudentIBLL)factBll.CreateUser("OnLineStudentBLL");
            DataTable         SelectOnLineStudentTable = onlinestudentIBLL.SelectOnlineStudent(out StrMsg);

            return(SelectOnLineStudentTable);
        }
コード例 #2
0
        private void 全部下机ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            OnLineStudentIBLL onlinestudentIBLL = (OnLineStudentIBLL)factBll.CreateUser("OnLineStudentBLL");
            string            StrMsg            = onlinestudentIBLL.LoginOutAllStudent();

            //清楚表内记录
            dataOnLineStudent.Rows.Clear();
            MessageBox.Show(StrMsg);
        }
コード例 #3
0
        private void 指定学生下机ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //获取下机学生卡号
            string            StudedntCardno    = dataOnLineStudent.CurrentCell.Value.ToString();
            OnLineStudentIBLL onlinestudentIBLL = (OnLineStudentIBLL)factBll.CreateUser("OnLineStudentBLL");
            string            StrMsg            = onlinestudentIBLL.LoginOutAssignStudent(StudedntCardno);//调用指定下机方法

            if (StrMsg == "下机成功!")
            {
                //清空记录                                                                        //清楚表内记录
                dataOnLineStudent.Rows.Clear();
            }

            MessageBox.Show(StrMsg);
        }