Example #1
0
        private void btnDetail_Click(object sender, EventArgs e)
        {
            Form form = new DetailForm();

            form.Text = this.GetTitle() + "详细信息";
            StudentExamSearch search = new StudentExamSearch();

            search.Dock = DockStyle.Fill;
            IDataAccess access    = FT.DAL.DataAccessFactory.GetDataAccess();
            string      condition = access.BetweenDateString("c_examdate", this.dateBetweenPanel1.BeginDate,
                                                             this.dateBetweenPanel1.EndDate);

            search.SetConditions(condition);
            form.Controls.Add(search);
            form.Show();
        }
Example #2
0
        private void ViewExam()
        {
            TabPage tb = this.tabControl1.TabPages[3];

            if (tb.Controls.Count == 0)
            {
                StudentExamSearch exams = new StudentExamSearch();
                exams.AllowCustomeSearch = false;
                exams.Dock           = DockStyle.Fill;
                exams.InitBeforeAdd += new ProcessObjectDelegate(exam_InitBeforeAdd);
                tb.Controls.Add(exams);
                exams.ClearColumns();
                exams.CreateColumn("姓名", 80);
                exams.CreateColumn("身份证明号码", 120);
                exams.CreateColumn("考试日期", 100);
                exams.CreateColumn("考试科目", 100);
                exams.CreateColumn("考试成绩", 100);
                exams.CreateColumn("考试结果");
                // this.Width += 30;
                exams.SetConditions("c_idcard='" + this.txtIdCard.Text.Trim() + "'");
            }
        }
Example #3
0
 private void ViewExam()
 {
     TabPage tb = this.tabControl1.TabPages[3];
     if (tb.Controls.Count == 0)
     {
         StudentExamSearch exams = new StudentExamSearch();
         exams.AllowCustomeSearch = false;
         exams.Dock = DockStyle.Fill;
         exams.InitBeforeAdd += new ProcessObjectDelegate(exam_InitBeforeAdd);
         tb.Controls.Add(exams);
         exams.ClearColumns();
         exams.CreateColumn("����", 80);
         exams.CreateColumn("���֤������", 120);
         exams.CreateColumn("��������",100);
         exams.CreateColumn("���Կ�Ŀ", 100);
         exams.CreateColumn("���Գɼ�", 100);
         exams.CreateColumn("���Խ��");
         // this.Width += 30;
         exams.SetConditions("c_idcard='" + this.txtIdCard.Text.Trim() + "'");
     }
 }
Example #4
0
 private void btnDetail_Click(object sender, EventArgs e)
 {
     Form form = new DetailForm();
     form.Text = this.GetTitle() + "��ϸ��Ϣ";
     StudentExamSearch search = new StudentExamSearch();
     search.Dock = DockStyle.Fill;
     IDataAccess access = FT.DAL.DataAccessFactory.GetDataAccess();
     string condition = access.BetweenDateString("c_examdate", this.dateBetweenPanel1.BeginDate,
         this.dateBetweenPanel1.EndDate);
     search.SetConditions(condition);
     form.Controls.Add(search);
     form.Show();
 }