예제 #1
0
        private void button3_Click(object sender, EventArgs e)
        {
            ExamLogSearch ctr = new ExamLogSearch();
            Form          tmp = new Form();

            tmp.WindowState   = FormWindowState.Maximized;
            tmp.ShowIcon      = false;
            tmp.Text          = "模拟考试记录列表";
            tmp.ShowInTaskbar = true;
            tmp.StartPosition = FormStartPosition.CenterScreen;
            ctr.SetUserIdCard(user.IdCard);
            ctr.Dock = DockStyle.Fill;
            tmp.Controls.Add(ctr);
            tmp.ShowDialog();
        }
예제 #2
0
        private void button3_Click(object sender, EventArgs e)
        {
            ArrayList list = SimpleOrmOperator.QueryConditionList <ExamUser>(" where c_idcard='" + DALSecurityTool.TransferInsertField(this.txtIdCard.Text.Trim()) + "'");

            if (list == null || list.Count == 0)
            {
                MessageBox.Show("对不起,不存在该学员,请咨询管理员!");
            }
            else
            {
                ExamLogSearch ctr = new ExamLogSearch();
                Form          tmp = new Form();
                tmp.WindowState   = FormWindowState.Maximized;
                tmp.ShowIcon      = false;
                tmp.Text          = "模拟考试记录列表";
                tmp.ShowInTaskbar = true;
                tmp.StartPosition = FormStartPosition.CenterScreen;
                ctr.SetUserIdCard(this.txtIdCard.Text.Trim());
                ctr.Dock = DockStyle.Fill;
                tmp.Controls.Add(ctr);
                tmp.ShowDialog();
            }
        }
예제 #3
0
 private void button3_Click(object sender, EventArgs e)
 {
     ExamLogSearch ctr = new ExamLogSearch();
     Form tmp = new Form();
     tmp.WindowState = FormWindowState.Maximized;
     tmp.ShowIcon = false;
     tmp.Text = "ģ�⿼�Լ�¼�б�";
     tmp.ShowInTaskbar = true;
     tmp.StartPosition = FormStartPosition.CenterScreen;
     ctr.SetUserIdCard(user.IdCard);
     ctr.Dock = DockStyle.Fill;
     tmp.Controls.Add(ctr);
     tmp.ShowDialog();
 }
예제 #4
0
        private void button3_Click(object sender, EventArgs e)
        {
            ArrayList list = SimpleOrmOperator.QueryConditionList<ExamUser>(" where c_idcard='" + DALSecurityTool.TransferInsertField(this.txtIdCard.Text.Trim()) + "'");
            if (list == null || list.Count == 0)
            {

                MessageBox.Show("�Բ��𣬲����ڸ�ѧԱ������ѯ����Ա��");
            }
            else
            {

                ExamLogSearch ctr = new ExamLogSearch();
                Form tmp = new Form();
                tmp.WindowState = FormWindowState.Maximized;
                    tmp.ShowIcon = false;
                    tmp.Text = "ģ�⿼�Լ�¼�б�";
                    tmp.ShowInTaskbar = true;
                    tmp.StartPosition = FormStartPosition.CenterScreen;
                   ctr.SetUserIdCard(this.txtIdCard.Text.Trim());
                    ctr.Dock = DockStyle.Fill;
                    tmp.Controls.Add(ctr);
                    tmp.ShowDialog();
            }
        }