Пример #1
0
        public void callback()
        {
            int                carbinetIndex = Program.frmClassRoom.carbinetIndex;
            int                floorNumber   = Program.frmClassRoom.floorNumber;
            int                columnNumber  = Program.frmClassRoom.columnNumber;
            string             epc           = MemoryTable.getPersonEpcByPosition(carbinetIndex, floorNumber, columnNumber);
            Person             p             = MemoryTable.getPersonByEpc(epc);
            frmShowStudentInfo frm           = new frmShowStudentInfo(p.id_num);

            frm.ShowDialog();
        }
Пример #2
0
        //单击座位时的处理
        void df_Click(object sender, EventArgs e)
        {
            DocumentFile df        = (DocumentFile)sender;
            string       studentID = null;

            DataRow[] rows = this.mapConfigsTable.Select("EQUIPEMNTID = '" + df.name + "'");
            if (rows.Length > 0)
            {
                studentID = (string)rows[0]["studenID"];
                if (studentID == null || studentID.Length <= 0)
                {
                    return;
                }
                frmShowStudentInfo frm = new frmShowStudentInfo(studentID);
                frm.ShowDialog();
            }
        }
        void df_Click(object sender, EventArgs e)
        {
            DocumentFile df        = (DocumentFile)sender;
            string       studentID = null;

            DataRow[] rows = this.mapConfigsTable.Select("EQUIPEMNTID = '" + df.name + "'");
            if (rows.Length > 0)
            {
                //rows[0]["sdudentID"] = data.tagID;
                //if (((string)rows[0]["studentName"]) == null || ((string)rows[0]["studentName"]).Length <= 0)
                //{
                //    rows[0]["studentName"] = data.tagID;//todo 这里应该检索学生信息
                //}
                //rows[0]["status"] = "1";
                studentID = (string)rows[0]["studenID"];
                if (studentID == null || studentID.Length <= 0)
                {
                    return;
                }
                frmShowStudentInfo frm = new frmShowStudentInfo(studentID);
                frm.ShowDialog();
            }
        }